added support for flooding untagged packets
diff --git a/accton/accton_util.py b/accton/accton_util.py
index ccc0fa8..f6c0e92 100755
--- a/accton/accton_util.py
+++ b/accton/accton_util.py
@@ -609,7 +609,9 @@
def add_bridge_flow(ctrl, dst_mac, vlanid, group_id, send_barrier=False):
match = ofp.match()
+ priority=500
if dst_mac!=None:
+ priority=1000
match.oxm_list.append(ofp.oxm.eth_dst(dst_mac))
match.oxm_list.append(ofp.oxm.vlan_vid(0x1000+vlanid))
@@ -625,7 +627,7 @@
ofp.instruction.goto_table(60)
],
buffer_id=ofp.OFP_NO_BUFFER,
- priority=1000)
+ priority=priority)
logging.info("Inserting Brdige flow vlan %d, mac %s", vlanid, dst_mac)
ctrl.message_send(request)
diff --git a/ofdpa/onos.py b/ofdpa/onos.py
index 6db2ee8..e1d63cb 100644
--- a/ofdpa/onos.py
+++ b/ofdpa/onos.py
@@ -73,6 +73,8 @@
add_one_vlan_table_flow(self.controller, port, 300, flag=VLAN_TABLE_FLAG_ONLY_TAG)
msg=add_l2_flood_group(self.controller, ports, 300, 1)
add_bridge_flow(self.controller, None, 300, msg.group_id, True)
+ msg=add_l2_flood_group(self.controller, ports, 4093, 1)
+ add_bridge_flow(self.controller, None, 4093, msg.group_id, True)
do_barrier(self.controller)
for out_port in ports: