Browse Source

Merge "Set binding:profile upon port creation"

changes/82/754782/1 1.2.0
Zuul 1 year ago
committed by Gerrit Code Review
parent
commit
7d5988b29b
  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