F #1865: Fix Open vSwitch VLAN range expansion (#2098)

(cherry picked from commit cef55358b0)
This commit is contained in:
Vlastimil Holer authored and Ruben S. Montero committed 2018-05-16 15:27:37 +02:00
1 parent 5208a2a7a4
commit f49f89f18c
1 file changed
+4 -1
+4 -1
View File
@@ -229,8 +229,11 @@ class OpenvSwitchVLAN < VNMMAD::VNMDriver
range.split(',').each do |i|
l, r = i.split('-')
l = l.to_i
r = r.to_i unless r.nil?
if r.nil?
items << i
items << l
elsif r >= l
items.concat((l..r).to_a)
else