Created
March 31, 2012 13:42
-
-
Save kazuyas/2264760 to your computer and use it in GitHub Desktop.
MatchTest3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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