Merge "Set binding:profile upon port creation"
This commit is contained in:
commit
7d5988b29b
|
@ -558,6 +558,8 @@ class BaseNetworkTest(test.BaseTestCase):
|
||||||
"""Wrapper utility that returns a test port."""
|
"""Wrapper utility that returns a test port."""
|
||||||
if CONF.network.port_vnic_type and 'binding:vnic_type' not in kwargs:
|
if CONF.network.port_vnic_type and 'binding:vnic_type' not in kwargs:
|
||||||
kwargs['binding:vnic_type'] = CONF.network.port_vnic_type
|
kwargs['binding:vnic_type'] = CONF.network.port_vnic_type
|
||||||
|
if CONF.network.port_profile and 'binding:profile' not in kwargs:
|
||||||
|
kwargs['binding:profile'] = CONF.network.port_profile
|
||||||
body = cls.client.create_port(network_id=network['id'],
|
body = cls.client.create_port(network_id=network['id'],
|
||||||
**kwargs)
|
**kwargs)
|
||||||
port = body['port']
|
port = body['port']
|
||||||
|
|
Loading…
Reference in New Issue