Feature #2990: Use ip instead of vconfig in the HostManaged network drivers

This commit is contained in:
Jaime Melis committed 2014-07-23 09:56:50 +02:00
1 parent 7ecf1bcd7b
commit 996b6b4861
1 file changed
+4 -1
+4 -1
View File
@@ -82,7 +82,10 @@ class OpenNebulaHM < OpenNebulaNetwork
end
def create_dev_vlan(dev, vlan)
OpenNebula.exec_and_log("#{COMMANDS[:vconfig]} add #{dev} #{vlan}")
cmd = "#{COMMANDS[:ip]} link add link #{dev}"
cmd << " name #{dev}.#{vlan} type vlan id #{vlan}"
OpenNebula.exec_and_log(cmd)
end
def attached_bridge_dev?(bridge, dev, vlan=nil)