Beispiel #1
0
def register():
    """Load in-tree drivers for the service plugin."""
    # Enable the trunk plugin to work with ML2/OVS. Support for other
    # drivers can be added similarly by executing the registration
    # code at the time of plugin/mech driver initialization. There should
    # be at least one compatible driver enabled in the deployment for trunk
    # setup to be successful. The plugin fails to initialize if no compatible
    # driver is found in the deployment.
    ovs_driver.register()
Beispiel #2
0
 def test_vif_details_bridge_name_handler_registration(self,
                                                       mock_gen_br_name):
     driver.register()
     mock_gen_br_name.return_value = 'fake-trunk-br-name'
     test_trigger = mock.Mock()
     registry.notify(agent_consts.OVS_BRIDGE_NAME, events.BEFORE_READ,
                     test_trigger, **{'port': {'trunk_details':
                                               {'trunk_id': 'foo'}}})
     test_trigger.assert_called_once_with('fake-trunk-br-name')
Beispiel #3
0
 def test_vif_details_bridge_name_handler_registration(self,
                                                       mock_gen_br_name):
     driver.register()
     mock_gen_br_name.return_value = 'fake-trunk-br-name'
     test_trigger = mock.Mock()
     registry.notify(agent_consts.OVS_BRIDGE_NAME, events.BEFORE_READ,
                     test_trigger, **{'port': {'trunk_details':
                                               {'trunk_id': 'foo'}}})
     test_trigger.assert_called_once_with('fake-trunk-br-name')
Beispiel #4
0
def register():
    """Load in-tree drivers for the service plugin."""
    # Enable the trunk plugin to work with ML2/OVS. Support for other
    # drivers can be added similarly by executing the registration
    # code at the time of plugin/mech driver initialization. There should
    # be at least one compatible driver enabled in the deployment for trunk
    # setup to be successful. The plugin fails to initialize if no compatible
    # driver is found in the deployment.
    lxb_driver.register()
    ovs_driver.register()