test: Add test case for match and instructions

This commit is contained in:
Eishun Kondoh 2017-11-28 21:04:09 +09:00
parent ecfd278f2a
commit 43f15e7d63
3 changed files with 220 additions and 158 deletions

View file

@ -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