Skip to content

Instantly share code, notes, and snippets.

@mikefaille
Created April 27, 2013 07:50
Show Gist options
  • Save mikefaille/5472251 to your computer and use it in GitHub Desktop.
Save mikefaille/5472251 to your computer and use it in GitHub Desktop.
This is my flow activation (using table 1)
FlowMod = #ofp_message{
version = 3,
xid = 100,
body = #ofp_flow_mod{
cookie = <<0:64>>,
cookie_mask = <<0:64>>,
table_id = 1,
command = add,
idle_timeout = 30000,
hard_timeout = 60000,
priority = 1,
buffer_id = 1,
out_port = 3,
out_group = 5,
flags = [],
match = #ofp_match{
fields = [#ofp_field{
class = openflow_basic,
name = in_port,
has_mask = false,
value = <<1:32>>}]},
instructions = [#ofp_instruction_write_actions{
actions = [#ofp_action_output{
port = 2,
max_len = 64}]}]}}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment