mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
feature #863: Fixes use od scripts_common for exec_and_log
This commit is contained in:
parent
22899b7139
commit
a4e880d932
@ -22,7 +22,7 @@ class EbtablesVLAN < OpenNebulaNetwork
|
||||
end
|
||||
|
||||
def ebtables(rule)
|
||||
exec_and_log("#{COMMANDS[:ebtables]} -A #{rule}")
|
||||
OpenNebula.exec_and_log("#{COMMANDS[:ebtables]} -A #{rule}")
|
||||
end
|
||||
|
||||
# Activates ebtables rules
|
||||
@ -82,6 +82,6 @@ class EbtablesVLAN < OpenNebulaNetwork
|
||||
end
|
||||
|
||||
def remove_rule(rule)
|
||||
exec_and_log("#{COMMANDS[:ebtables]} -D FORWARD #{rule}")
|
||||
OpenNebula.exec_and_log("#{COMMANDS[:ebtables]} -D FORWARD #{rule}")
|
||||
end
|
||||
end
|
||||
|
@ -32,7 +32,7 @@ class OpenvSwitchVLAN < OpenNebulaNetwork
|
||||
cmd = "#{COMMANDS[:ovs_vsctl]} set Port #{nic[:tap]} "
|
||||
cmd << "tag=#{vlan}"
|
||||
|
||||
exec_and_log(cmd)
|
||||
OpenNebula.exec_and_log(cmd)
|
||||
end
|
||||
|
||||
return 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user