Hi,
I'm trying to implement a Ryu app that calculates main and backup paths and
save their rules in flow & group tables.
in my code I need to use vlan_id for tagging packets in group table actions
like this:
group_id=6,type=ff,bucket=weight:0,watch_port:2,actions=output:2,bucket=weight:0,watch_port:1,actions=output:1,set_field:4358->vlan_vid
when i down port 2 (in mininet) , it adds vlan_id= 198 and sends the packet
from port 1, but in the next node the packet does not match with this rule:
cookie=0x0, duration=1447.496s, table=0, n_packets=0, n_bytes=0,
priority=32770,dl_vlan=198,dl_dst=10:00:00:00:00:02 actions=output:2
I capture the input port of next node in wireshark, vlan_id is correct, but
the packet is dropped!
my Ryu code is like this:
buckets.append(parser.OFPBucket(watch_port=_port, actions=[
parser.OFPActionOutput(_port),
parser.OFPActionSetField(vlan_vid=ofp.OFPVID_PRESENT | failure_id)
]))
match = parser.OFPMatch(vlan_vid=(failure_id | ofp.OFPVID_PRESENT),
eth_dst=dst_)
Thanks in advance
-Tahereh
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel