Set binding:profile upon port creation
Change-Id: Ic3f4ca737c8a5adad5d9ef050c6d5cf1541e58ee
This commit is contained in:
parent
de8e503274
commit
5d9b1408ab
|
@ -558,6 +558,8 @@ class BaseNetworkTest(test.BaseTestCase):
|
|||
"""Wrapper utility that returns a test port."""
|
||||
if CONF.network.port_vnic_type and 'binding:vnic_type' not in kwargs:
|
||||
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'],
|
||||
**kwargs)
|
||||
port = body['port']
|
||||
|
|
Loading…
Reference in New Issue