Browse Source

Set binding:profile upon port creation

Change-Id: Ic3f4ca737c8a5adad5d9ef050c6d5cf1541e58ee
changes/38/752238/3
Glenn Van de Water 1 year ago
parent
commit
5d9b1408ab
  1. 2
      neutron_tempest_plugin/api/base.py

2
neutron_tempest_plugin/api/base.py

@ -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…
Cancel
Save