Fix: pipeline the provider network traffic to NORMAL table
Change-Id: I56726c890b1eb23576bf9c04252cb68334b9cb82
(cherry picked from commit a2ab1ed56122cd24d499ee16175d1151708d173f)
diff --git a/apps/kubevirt-networking/app/src/main/java/org/onosproject/kubevirtnetworking/impl/KubevirtSecurityGroupHandler.java b/apps/kubevirt-networking/app/src/main/java/org/onosproject/kubevirtnetworking/impl/KubevirtSecurityGroupHandler.java
index d97ac47..c551369 100644
--- a/apps/kubevirt-networking/app/src/main/java/org/onosproject/kubevirtnetworking/impl/KubevirtSecurityGroupHandler.java
+++ b/apps/kubevirt-networking/app/src/main/java/org/onosproject/kubevirtnetworking/impl/KubevirtSecurityGroupHandler.java
@@ -291,13 +291,8 @@
ACTION_DROP, PRIORITY_CT_DROP_RULE, install);
}
- private void initializeProviderAclTable(KubevirtNode node,
- DeviceId deviceId, boolean install) {
- // FIXME: we need to use group table to multi-cast traffic to all
- // physPatchPorts later, we only choose one of the physPatchPorts to
- // stream the outbound traffic for now
- node.physPatchPorts().stream().findFirst().ifPresent(p ->
- initializeAclTable(deviceId, ACL_RECIRC_TABLE, p, install));
+ private void initializeProviderAclTable(DeviceId deviceId, boolean install) {
+ initializeAclTable(deviceId, ACL_RECIRC_TABLE, PortNumber.NORMAL, install);
}
private void initializeTenantAclTable(KubevirtNetwork network,
@@ -368,7 +363,7 @@
initializeProviderIngressTable(node.intgBridge(), install);
initializeProviderEgressTable(node.intgBridge(), install);
initializeProviderConnTrackTable(node.intgBridge(), install);
- initializeProviderAclTable(node, node.intgBridge(), install);
+ initializeProviderAclTable(node.intgBridge(), install);
}
private void initializeTenantPipeline(KubevirtNetwork network,