def main(): common_config.init(sys.argv[1:]) common_config.setup_logging() q_utils.log_opt_values(LOG) bridge_classes = { 'br_int': br_int.OVSIntegrationBridge, 'br_phys': br_phys.OVSPhysicalBridge, 'br_tun': br_tun.OVSTunnelBridge, } ovs_neutron_agent.prepare_xen_compute() ovs_neutron_agent.validate_tunnel_config( cfg.CONF.AGENT.tunnel_types, cfg.CONF.OVS.local_ip ) try: agent = OVSSfcAgent(bridge_classes, cfg.CONF) except (RuntimeError, ValueError) as e: LOG.exception(e) LOG.error(_LE('Agent terminated!')) sys.exit(1) LOG.info(_LI("Agent initialized successfully, now running... ")) agent.daemon_loop()
def main(): # this is from neutron.plugins.ml2.drivers.openvswitch.agent.main common_config.init(sys.argv[1:]) n_utils.log_opt_values(LOG) common_config.setup_logging() # this is from neutron.plugins.ml2.drivers.openvswitch.agent.openflow. # ovs_ofctl.main bridge_classes = { 'br_int': br_int.OVSIntegrationBridge, 'br_phys': br_phys.OVSPhysicalBridge, 'br_tun': br_tun.OVSTunnelBridge, } # this is from neutron.plugins.ml2.drivers.openvswitch.agent. # ovs_neutron_agent try: agent_config = create_agent_config_map(cfg.CONF) except ValueError: LOG.exception(_LE("Agent failed to create agent config map")) raise SystemExit(1) prepare_xen_compute() validate_local_ip(agent_config['local_ip']) try: agent = OVSBagpipeNeutronAgent(bridge_classes, **agent_config) except (RuntimeError, ValueError) as e: LOG.error(_LE("%s Agent terminated!"), e) sys.exit(1) agent.daemon_loop()
def main(): common_config.init(sys.argv[1:]) common_config.setup_logging() q_utils.log_opt_values(LOG) bridge_classes = { 'br_int': br_int.OVSIntegrationBridge, 'br_phys': br_phys.OVSPhysicalBridge, 'br_tun': br_tun.OVSTunnelBridge, } ovs_neutron_agent.prepare_xen_compute() ovs_neutron_agent.validate_tunnel_config( cfg.CONF.AGENT.tunnel_types, cfg.CONF.OVS.local_ip ) try: agent = OVSSfcAgent(bridge_classes, cfg.CONF) except (RuntimeError, ValueError) as e: LOG.exception(e) LOG.error(_LE('Agent terminated!')) sys.exit(1) LOG.info(_LI("Agent initialized successfully, now running... ")) agent.daemon_loop()
def main(): # this is from neutron.plugins.ml2.drivers.openvswitch.agent.main common_config.init(sys.argv[1:]) n_utils.log_opt_values(LOG) common_config.setup_logging() # this is from neutron.plugins.ml2.drivers.openvswitch.agent.openflow. # ovs_ofctl.main bridge_classes = { 'br_int': br_int.OVSIntegrationBridge, 'br_phys': br_phys.OVSPhysicalBridge, 'br_tun': br_tun.OVSTunnelBridge, } # this is from neutron.plugins.ml2.drivers.openvswitch.agent. # ovs_neutron_agent try: agent_config = create_agent_config_map(cfg.CONF) except ValueError: LOG.exception(_LE("Agent failed to create agent config map")) raise SystemExit(1) prepare_xen_compute() validate_local_ip(agent_config['local_ip']) try: agent = OVSBagpipeNeutronAgent(bridge_classes, **agent_config) except (RuntimeError, ValueError) as e: LOG.error(_LE("%s Agent terminated!"), e) sys.exit(1) agent.daemon_loop()