mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
Feature #2990: Use ip instead of vconfig in the HostManaged network drivers
This commit is contained in:
1 parent
7ecf1bcd7b
commit
996b6b4861
1 file changed
+4
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user