Skip to content

Commit

Permalink
add sample rule file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgo committed Aug 18, 2012
1 parent b59df5a commit 0ae9e23
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions rel/files/FlowMod.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FlowMod = #ofp_message{
version = 3,
xid = 100,
body = #ofp_flow_mod{
cookie = <<0:64>>,
cookie_mask = <<0:64>>,
table_id = 0,
command = add,
idle_timeout = 30000,
hard_timeout = 60000,
priority = 1,
buffer_id = 1,
out_port = 3,
out_group = 5,
flags = [],
match = #ofp_match{
type = oxm,
oxm_fields = [#ofp_field{
class = openflow_basic,
field = in_port,
has_mask = false,
value = <<1:32>>}]},
instructions = [#ofp_instruction_write_actions{
actions = [#ofp_action_output{
port = 2,
max_len = 64}]}]}}.

0 comments on commit 0ae9e23

Please sign in to comment.