Skip to content

Instantly share code, notes, and snippets.

@kazuyas
Created March 31, 2012 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazuyas/2264760 to your computer and use it in GitHub Desktop.
Save kazuyas/2264760 to your computer and use it in GitHub Desktop.
MatchTest3
class MatchTest < Controller
def switch_ready datapath_id
match = Match.new(
:dl_type => 0x0800,
:nw_dst => "192.168.1.0/24"
)
send_flow_mod_add(
datapath_id,
:match => match
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment