def dump_flows
      openflow_version = case @vsctl.openflow_version
                         when 1.0
                           :OpenFlow10
                         when 1.3
                           :OpenFlow13
                         else
                           raise "Unknown OpenFlow version: #{@vsctl.openflow_version}"
                         end
      sudo("ovs-ofctl dump-flows #{bridge} -O #{openflow_version}").
        split("\n").inject('') do |memo, each|
        memo + (/^(NXST|OFPST)_FLOW reply/ =~ each ? '' : each.lstrip + "\n")
      end
    end
def dump_flows
      openflow_version = case @vsctl.openflow_version
                         when 1.0
                           :OpenFlow10
                         when 1.3
                           :OpenFlow13
                         else
                           raise "Unknown OpenFlow version: #{@vsctl.openflow_version}"
                         end
      sudo("ovs-ofctl dump-flows #{bridge} -O #{openflow_version}").
        split("\n").inject('') do |memo, each|
        memo + (/^(NXST|OFPST)_FLOW reply/ =~ each ? '' : each.lstrip + "\n")
      end
    end
rubocop:disable MethodLength
 rubocop:disable LineLength