mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
feature #863: Fixes use od scripts_common for exec_and_log
This commit is contained in:
1 parent
22899b7139
commit
a4e880d932
2 files changed
+3
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user