예제 #1
0
def main():
    bridge_classes = {
        'br_int': br_int.OVSIntegrationBridge,
        'br_phys': br_phys.OVSPhysicalBridge,
        'br_tun': br_tun.OVSTunnelBridge,
    }
    ovs_neutron_agent.main(bridge_classes)
예제 #2
0
def agent_main_wrapper(bridge_classes):
    ovs_agent.main(bridge_classes)
    # The following call terminates Ryu's AppManager.run_apps(),
    # which is needed for clean shutdown of an agent process.
    # The close() call must be called in another thread, otherwise
    # it suicides and ends prematurely.
    hub.spawn(app_manager.AppManager.get_instance().close)
예제 #3
0
def agent_main_wrapper(bridge_classes):
    ovs_agent.main(bridge_classes)
    # The following call terminates Ryu's AppManager.run_apps(),
    # which is needed for clean shutdown of an agent process.
    # The close() call must be called in another thread, otherwise
    # it suicides and ends prematurely.
    hub.spawn(app_manager.AppManager.get_instance().close)
예제 #4
0
def main():
    bridge_classes = {
        'br_int': br_int.OVSIntegrationBridge,
        'br_phys': br_phys.OVSPhysicalBridge,
        'br_tun': br_tun.OVSTunnelBridge,
    }
    ovs_neutron_agent.main(bridge_classes)
예제 #5
0
def agent_main_wrapper(bridge_classes):
    try:
        ovs_agent.main(bridge_classes)
    except Exception:
        with excutils.save_and_reraise_exception():
            LOG.exception("Agent main thread died of an exception")
    finally:
        # The following call terminates os-ken's AppManager.run_apps(),
        # which is needed for clean shutdown of an agent process.
        # The close() call must be called in another thread, otherwise
        # it suicides and ends prematurely.
        hub.spawn(app_manager.AppManager.get_instance().close)
예제 #6
0
def agent_main_wrapper(bridge_classes):
    try:
        ovs_agent.main(bridge_classes)
    except Exception:
        with excutils.save_and_reraise_exception():
            LOG.exception("Agent main thread died of an exception")
    finally:
        # The following call terminates os-ken's AppManager.run_apps(),
        # which is needed for clean shutdown of an agent process.
        # The close() call must be called in another thread, otherwise
        # it suicides and ends prematurely.
        hub.spawn(app_manager.AppManager.get_instance().close)