Hi Everyone, I have default rules for LLDP and table miss in my ryu. So initially I have following rules in every mininet switch:-
cookie=0x0, duration=30.968s, table=0, n_packets=16, n_bytes=960, priority=65535,dl_dst=01:80:c2:00:00:0e,dl_type=0x88cc actions=CONTROLLER:65535 cookie=0x0, duration=30.993s, table=0, n_packets=98, n_bytes=10771, priority=0 actions=CONTROLLER:65535 Now I processed some traffic and following are the rules:- cookie=0x0, duration=51.091s, table=0, n_packets=24, n_bytes=1440, priority=65535,dl_dst=01:80:c2:00:00:0e,dl_type=0x88cc actions=CONTROLLER:65535 cookie=0x0, duration=7.242s, table=0, n_packets=0, n_bytes=0, priority=1,arp,in_port="s1-eth2",dl_src=00:00:00:00:00:36,dl_dst=00:00:00:00:00:11 actions=output:"sr1-eth3" cookie=0x0, duration=7.237s, table=0, n_packets=1, n_bytes=42, priority=1,arp,in_port="s1-eth1",dl_src=00:00:00:00:00:36,dl_dst=00:00:00:00:00:11 actions=output:"sr1-eth3" cookie=0x0, duration=7.237s, table=0, n_packets=1, n_bytes=42, priority=1,arp,in_port="s1-eth3",dl_src=00:00:00:00:00:11,dl_dst=00:00:00:00:00:36 actions=output:"sr1-eth1" cookie=0x0, duration=7.228s, table=0, n_packets=0, n_bytes=0, priority=1,ip,in_port="s1-eth2",nw_src=10.0.0.36,nw_dst=10.0.0.11 actions=output:"sr301-eth3" cookie=0x0, duration=7.223s, table=0, n_packets=1, n_bytes=98, priority=1,ip,in_port="s1-eth1",nw_src=10.0.0.36,nw_dst=10.0.0.11 actions=output:"sr301-eth3" cookie=0x0, duration=7.223s, table=0, n_packets=1, n_bytes=98, priority=1,ip,in_port="s1-eth3",nw_src=10.0.0.11,nw_dst=10.0.0.36 actions=output:"sr301-eth1" cookie=0x0, duration=51.116s, table=0, n_packets=106, n_bytes=12438, priority=0 actions=CONTROLLER:65535 Now I wanted to remove all extra flows other than original 2 flows for LLDP and table miss. So I used FlowMod as following:- req = parser.OFPFlowMod(datapath, cookie=0, cookie_mask=0, table_id=OFPTT_ALL, command=ofproto.OFPFC_DELETE_STRICT, idle_timeout=0, hard_timeout=0, priority=1, buffer_id=OFPCML_NO_BUFFER, out_port=OFPP_ANY, out_group=OFPG_ANY, flags=0, match=None, instructions=None) datapath.send_msg(req) The problem is its not deleting priority 1 flows and if I use "ofproto.OFPFC_DELETE" as command, all the flows are getting removed. Could anyone please let me know what am I missing here. Thank you. Warm Regards- Sudhanshu Naithani
_______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel