quality: Formatted
This commit is contained in:
parent
9abfe61adc
commit
fe854a6271
1 changed files with 16 additions and 13 deletions
|
|
@ -12,7 +12,8 @@ defmodule Tres.HanderTest do
|
||||||
|
|
||||||
describe "Openflow RoleRequest message" do
|
describe "Openflow RoleRequest message" do
|
||||||
test "with role and generation_id" do
|
test "with role and generation_id" do
|
||||||
{:ok, %Openflow.Role.Reply{}} = sync_send_message(Openflow.Role.Request.new(role: :nochange, generation_id: 1))
|
{:ok, %Openflow.Role.Reply{}} =
|
||||||
|
sync_send_message(Openflow.Role.Request.new(role: :nochange, generation_id: 1))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -48,7 +49,8 @@ defmodule Tres.HanderTest do
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
{:ok, %Openflow.GetAsync.Reply{
|
{:ok,
|
||||||
|
%Openflow.GetAsync.Reply{
|
||||||
flow_removed_mask_master: [:idle_timeout, :hard_timeout, :delete, :group_delete],
|
flow_removed_mask_master: [:idle_timeout, :hard_timeout, :delete, :group_delete],
|
||||||
flow_removed_mask_slave: [],
|
flow_removed_mask_slave: [],
|
||||||
packet_in_mask_master: [:no_match, :action],
|
packet_in_mask_master: [:no_match, :action],
|
||||||
|
|
@ -82,7 +84,8 @@ defmodule Tres.HanderTest do
|
||||||
Openflow.FlowMod.new(
|
Openflow.FlowMod.new(
|
||||||
priority: 0xFFFF,
|
priority: 0xFFFF,
|
||||||
match: Openflow.Match.new(in_port: 0xF, reg0: 99, eth_type: 0x0806),
|
match: Openflow.Match.new(in_port: 0xF, reg0: 99, eth_type: 0x0806),
|
||||||
instructions: Openflow.Instruction.ApplyActions.new([
|
instructions:
|
||||||
|
Openflow.Instruction.ApplyActions.new([
|
||||||
Openflow.Action.NxController2.new(pause: true),
|
Openflow.Action.NxController2.new(pause: true),
|
||||||
Openflow.Action.NxResubmitTable.new()
|
Openflow.Action.NxResubmitTable.new()
|
||||||
])
|
])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue