Improved ofp-print
This commit is contained in:
parent
4c429d81d7
commit
b592219bd3
1 changed files with 2 additions and 3 deletions
|
|
@ -70,7 +70,7 @@ defmodule Flay do
|
|||
{:noreply, %{state|reply_to: nil}}
|
||||
end
|
||||
# `Catch all` function is required.
|
||||
def handle_info(info, state) do
|
||||
def handle_info(_info, state) do
|
||||
# :ok = warn("[#{__MODULE__}] unhandled message #{inspect(info)}")
|
||||
{:noreply, state}
|
||||
end
|
||||
|
|
@ -83,11 +83,10 @@ defmodule Flay do
|
|||
|> Openflow.to_binary
|
||||
|> binary_to_space_delimited_hex
|
||||
|> ofp_print_cmd
|
||||
|> IO.inspect
|
||||
|> Logger.info
|
||||
end
|
||||
|
||||
defp ofp_print_cmd(print_args) do
|
||||
IO.inspect("\n")
|
||||
{result, _code} = System.cmd("ovs-ofctl", ["ofp-print", "#{print_args}"])
|
||||
result
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue