POX>from pox.core import core
POX>import pox.openflow.libopenflow_01 as of
POX>from pox.lib.addresses import IPAddr
Add flows
POX>for connection in core.openflow.connections:
connection.send(of.ofp_flow_mod(action=of.ofp_action_output(port=2),priority=32,
match=of.ofp_match(dl_type=0x800,nw_src="10.0.0.1",nw_dst="10.0.0.2")))
Delete flows
POX>for connection in core.openflow.connections:
connection.send(of.ofp_flow_mod(command=of.OFPFC_DELETE_STRICT,
action=of.ofp_action_output(port=3),priority=32,
match=of.ofp_match(dl_type=0x800,nw_src="10.0.0.1",nw_dst="10.0.0.3")))
Dont forget to add
net.staticArp() after net.build() in mininet code
*make sure in for loops, intendent is there
For connection....
connection.send......
POX>import pox.openflow.libopenflow_01 as of
POX>from pox.lib.addresses import IPAddr
Add flows
POX>for connection in core.openflow.connections:
connection.send(of.ofp_flow_mod(action=of.ofp_action_output(port=2),priority=32,
match=of.ofp_match(dl_type=0x800,nw_src="10.0.0.1",nw_dst="10.0.0.2")))
Delete flows
POX>for connection in core.openflow.connections:
connection.send(of.ofp_flow_mod(command=of.OFPFC_DELETE_STRICT,
action=of.ofp_action_output(port=3),priority=32,
match=of.ofp_match(dl_type=0x800,nw_src="10.0.0.1",nw_dst="10.0.0.3")))
Dont forget to add
net.staticArp() after net.build() in mininet code
*make sure in for loops, intendent is there
For connection....
connection.send......