diff options
author | Rabi Mishra <ramishra@redhat.com> | 2020-07-24 13:37:27 +0530 |
---|---|---|
committer | Rabi Mishra <ramishra@redhat.com> | 2020-08-13 09:31:17 +0000 |
commit | 56a663c2d9b9ccf62e8780cf5f9250d4cf13785b (patch) | |
tree | f128f11e77520b211cf9c8d413269467f8552621 | |
parent | 03ab18d4599183d13dceb6d1130358f717197136 (diff) | |
download | heat-56a663c2d9b9ccf62e8780cf5f9250d4cf13785b.tar.gz |
Add 'smart-nic' vnic type support for OS::Neutron::Port
I91f63810626ce4e054e358f5de5e46434c4da131 added it in neutron.
Task: 40436
Depends-On: https://review.opendev.org/746034
Change-Id: If04e080d2e399795d501d0317196589dcbd934e5
-rw-r--r-- | heat/engine/resources/openstack/neutron/port.py | 2 | ||||
-rw-r--r-- | heat/tests/openstack/neutron/test_neutron_port.py | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/heat/engine/resources/openstack/neutron/port.py b/heat/engine/resources/openstack/neutron/port.py index de2c1db0e..b7a01d40b 100644 --- a/heat/engine/resources/openstack/neutron/port.py +++ b/heat/engine/resources/openstack/neutron/port.py @@ -284,7 +284,7 @@ class Port(neutron.NeutronResource): constraints=[ constraints.AllowedValues(['normal', 'direct', 'macvtap', 'direct-physical', 'baremetal', - 'virtio-forwarder']), + 'virtio-forwarder', 'smart-nic']), ], support_status=support.SupportStatus(version='2015.1'), update_allowed=True, diff --git a/heat/tests/openstack/neutron/test_neutron_port.py b/heat/tests/openstack/neutron/test_neutron_port.py index 78485c988..4e022e1ed 100644 --- a/heat/tests/openstack/neutron/test_neutron_port.py +++ b/heat/tests/openstack/neutron/test_neutron_port.py @@ -1026,6 +1026,11 @@ class UpdatePortTest(common.HeatTestCase): fixed_ips=None, addr_pair=None, vnic_type='virtio-forwarder')), + ('smart_nic_vnic', dict(secgrp=None, + value_specs={}, + fixed_ips=None, + addr_pair=None, + vnic_type='smart-nic')), ('with_all', dict(secgrp=['8a2f582a-e1cd-480f-b85d-b02631c10656'], value_specs={}, fixed_ips=[ |