Browse Source

Fixes VLAN trunk setting issue

When setting VLAN trunks, os-win's networkutils expects the
trunk_vlans key-value argument, but the trunk_driver passes
the vlan_trunk argument, which is wrong.

This patch fixes this issue.

Change-Id: Iabf845fefdbe564f2c8d7f5ac34e5e97cf480897
Closes-Bug: #1745362
Claudiu Belu 1 year ago
parent
commit
ab16e54173

+ 1
- 1
networking_hyperv/neutron/trunk_driver.py View File

@@ -143,4 +143,4 @@ class HyperVTrunkDriver(trunk_rpc.TrunkSkeleton):
143 143
             vlan_id,
144 144
             port_id,
145 145
             operation_mode=op_mode,
146
-            vlan_trunk=vlan_trunk)
146
+            trunk_vlans=vlan_trunk)

+ 1
- 1
networking_hyperv/tests/unit/neutron/test_trunk_driver.py View File

@@ -143,7 +143,7 @@ class TestHyperVTrunkDriver(base.HyperVBaseTestCase):
143 143
         self.trunk_driver._utils.set_vswitch_port_vlan_id(
144 144
             mock.sentinel.vlan_id, mock.sentinel.port_id,
145 145
             operation_mode=operation_mode,
146
-            vlan_trunk=vlan_trunk)
146
+            trunk_vlans=vlan_trunk)
147 147
 
148 148
     def test_set_port_vlan_trunk_mode(self):
149 149
         self._check_set_port_vlan(mock.sentinel.vlan_trunk,

Loading…
Cancel
Save