test: Add test case for match and instructions
This commit is contained in:
parent
ecfd278f2a
commit
43f15e7d63
3 changed files with 220 additions and 158 deletions
|
|
@ -47,7 +47,11 @@ defmodule Flay do
|
|||
{:noreply, %{state|tester_pid: tester_pid}}
|
||||
end
|
||||
def handle_cast(:flow_del, state) do
|
||||
send_flow_mod_delete(state.datapath_id, match: Match.new)
|
||||
send_flow_mod_delete(state.datapath_id)
|
||||
{:noreply, state}
|
||||
end
|
||||
def handle_cast({:flow_del, cookie}, state) do
|
||||
send_flow_mod_delete(state.datapath_id, cookie: cookie, cookie_mask: 0xffffffffffffffff)
|
||||
{:noreply, state}
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue