1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-08 21:17:43 +03:00

M #-: Fix trunk VLAN IDs for OVS

When the VLAN range includes spaces (e.g. "1, 3 , 4 ,5") the tunk attribute for the port is not properly updated.

(cherry picked from commit 9a17e4b62d)
This commit is contained in:
Ruben S. Montero 2022-10-17 21:14:30 +02:00
parent a3e5f015d4
commit bb8df9fcd8
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -194,7 +194,7 @@ class OpenvSwitchVLAN < VNMMAD::VNMDriver
# we need to support even older versions. We expand the
# intervals into the list of values [x,x+1,...,y-1,y],
# which should work for all.
cmd = "#{ovs_vsctl_cmd} trunks=#{expand_range(range)}"
cmd = "#{ovs_vsctl_cmd} trunks='#{expand_range(range)}'"
run cmd
cmd = "#{ovs_vsctl_cmd} vlan_mode=native-untagged"