Method: Phut::OpenVswitch#dump_flows
- Defined in:
- lib/phut/open_vswitch.rb
#dump_flows ⇒ Object
111 112 113 114 115 116 117 |
# File 'lib/phut/open_vswitch.rb', line 111 def dump_flows output = `sudo ovs-ofctl dump-flows #{bridge_name} -O #{Pio::OpenFlow.version}` output.split("\n").inject('') do |memo, each| memo + ((/^(NXST|OFPST)_FLOW reply/=~ each) ? '' : each.lstrip + "\n") end end |