Module: Havox::Command

Defined in:
lib/havox/modules/command.rb

Class Method Summary collapse

Class Method Details

.compile(topology_file, policy_file) ⇒ Object



12
13
14
# File 'lib/havox/modules/command.rb', line 12

def compile(topology_file, policy_file)
  merlin_command("-topo #{topology_file} #{policy_file} -verbose")
end

.show_ip_route(vm_name, protocol) ⇒ Object



4
5
6
# File 'lib/havox/modules/command.rb', line 4

def show_ip_route(vm_name, protocol)
  vtysh_run(vm_name, "show ip route #{protocol}")
end

.vtysh_run(vm_name, command) ⇒ Object



8
9
10
# File 'lib/havox/modules/command.rb', line 8

def vtysh_run(vm_name, command)
  rf_command(vm_name, "/usr/bin/vtysh -c '#{command}'")
end