From 0ae9e2343b14e40e35d35bc77806c75b5239741e Mon Sep 17 00:00:00 2001 From: alexgo Date: Sat, 18 Aug 2012 15:49:33 -0700 Subject: [PATCH] add sample rule file --- rel/files/FlowMod.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 rel/files/FlowMod.txt diff --git a/rel/files/FlowMod.txt b/rel/files/FlowMod.txt new file mode 100644 index 0000000..1380246 --- /dev/null +++ b/rel/files/FlowMod.txt @@ -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}]}]}}. \ No newline at end of file