Merge "libvirt: Always delegate OVS plug to os-vif"

This commit is contained in:
Zuul 2021-07-26 19:45:17 +00:00 committed by Gerrit Code Review
commit 1c490ecd7b
2 changed files with 3 additions and 1 deletions

View File

@ -2984,7 +2984,8 @@ class API:
ovs_interfaceid=ovs_interfaceid,
devname=devname,
active=vif_active,
preserve_on_delete=preserve_on_delete
preserve_on_delete=preserve_on_delete,
delegate_create=True,
)
def _build_network_info_model(self, context, instance, networks=None,

View File

@ -3268,6 +3268,7 @@ class TestAPI(TestAPIBase):
requested_ports[index].get(
constants.BINDING_PROFILE) or {},
nw_info.get('profile'))
self.assertTrue(nw_info.get('delegate_create'))
index += 1
self.assertFalse(nw_infos[0]['active'])