Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- msg = of.ofp_flow_mod()
- msg.match.dl_dst = of.EthAddr("00:00:00:00:0:02")
- msg.match.dl_src = of.EthAddr("00:00:00:00:00:01")
- msg.actions.append(of.ofp_action_vlan_vid(vlan_vid = 22))
- msg.actions.append(of.ofp_action_output(port = 2))
- connection.send(msg)
Advertisement
Add Comment
Please, Sign In to add comment