vitutc

My POX Flow_Mod

Sep 12th, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. msg = of.ofp_flow_mod()
  2. msg.match.dl_dst = of.EthAddr("00:00:00:00:0:02")
  3. msg.match.dl_src = of.EthAddr("00:00:00:00:00:01")
  4. msg.actions.append(of.ofp_action_vlan_vid(vlan_vid = 22))
  5. msg.actions.append(of.ofp_action_output(port = 2))
  6. connection.send(msg)
Advertisement
Add Comment
Please, Sign In to add comment