Add P4 info to java constant tool
Change-Id: I73a451404e8b657845bfc9b6a37abd824a10910e
diff --git a/pipelines/fabric/src/test/java/org/onosproject/pipelines/fabric/pipeliner/FabricFilteringPipelinerTest.java b/pipelines/fabric/src/test/java/org/onosproject/pipelines/fabric/pipeliner/FabricFilteringPipelinerTest.java
index b62c3c2..5769e8f 100644
--- a/pipelines/fabric/src/test/java/org/onosproject/pipelines/fabric/pipeliner/FabricFilteringPipelinerTest.java
+++ b/pipelines/fabric/src/test/java/org/onosproject/pipelines/fabric/pipeliner/FabricFilteringPipelinerTest.java
@@ -65,10 +65,11 @@
// in port vlan flow rule
FlowRule actualFlowRule = flowRulesInstalled.get(0);
- FlowRule flowRuleExpected = buildExpectedVlanInPortRule(PORT_1,
- VlanId.NONE,
- VLAN_100,
- FabricConstants.TBL_INGRESS_PORT_VLAN_ID);
+ FlowRule flowRuleExpected =
+ buildExpectedVlanInPortRule(PORT_1,
+ VlanId.NONE,
+ VLAN_100,
+ FabricConstants.FABRIC_INGRESS_FILTERING_INGRESS_PORT_VLAN);
assertTrue(flowRuleExpected.exactMatch(actualFlowRule));
// forwarding classifier ipv4
@@ -125,10 +126,11 @@
// in port vlan flow rule
FlowRule actualFlowRule = flowRulesInstalled.get(0);
- FlowRule flowRuleExpected = buildExpectedVlanInPortRule(PORT_1,
- VlanId.NONE,
- VLAN_100,
- FabricConstants.TBL_INGRESS_PORT_VLAN_ID);
+ FlowRule flowRuleExpected =
+ buildExpectedVlanInPortRule(PORT_1,
+ VlanId.NONE,
+ VLAN_100,
+ FabricConstants.FABRIC_INGRESS_FILTERING_INGRESS_PORT_VLAN);
assertTrue(flowRuleExpected.exactMatch(actualFlowRule));
// forwarding classifier
@@ -169,10 +171,11 @@
// in port vlan flow rule
FlowRule actualFlowRule = flowRulesInstalled.get(0);
- FlowRule flowRuleExpected = buildExpectedVlanInPortRule(PORT_1,
- VlanId.NONE,
- VLAN_100,
- FabricConstants.TBL_INGRESS_PORT_VLAN_ID);
+ FlowRule flowRuleExpected =
+ buildExpectedVlanInPortRule(PORT_1,
+ VlanId.NONE,
+ VLAN_100,
+ FabricConstants.FABRIC_INGRESS_FILTERING_INGRESS_PORT_VLAN);
assertTrue(flowRuleExpected.exactMatch(actualFlowRule));
// forwarding classifier
@@ -200,10 +203,11 @@
// in port vlan flow rule
FlowRule actualFlowRule = flowRulesInstalled.get(0);
- FlowRule flowRuleExpected = buildExpectedVlanInPortRule(PORT_1,
- VlanId.NONE,
- VLAN_100,
- FabricConstants.TBL_INGRESS_PORT_VLAN_ID);
+ FlowRule flowRuleExpected =
+ buildExpectedVlanInPortRule(PORT_1,
+ VlanId.NONE,
+ VLAN_100,
+ FabricConstants.FABRIC_INGRESS_FILTERING_INGRESS_PORT_VLAN);
assertTrue(flowRuleExpected.exactMatch(actualFlowRule));
// No rules in forwarding classifier, will do default action: set fwd type to bridging
@@ -332,10 +336,10 @@
.matchInPort(inPort)
.matchEthType(ethType)
.build();
- PiActionParam classParam = new PiActionParam(FabricConstants.ACT_PRM_FWD_TYPE_ID,
+ PiActionParam classParam = new PiActionParam(FabricConstants.FWD_TYPE,
ImmutableByteSequence.copyFrom(fwdClass));
PiAction fwdClassifierAction = PiAction.builder()
- .withId(FabricConstants.ACT_FABRICINGRESS_FILTERING_SET_FORWARDING_TYPE_ID)
+ .withId(FabricConstants.FABRIC_INGRESS_FILTERING_SET_FORWARDING_TYPE)
.withParameter(classParam)
.build();
TrafficTreatment treatment = DefaultTrafficTreatment.builder()
@@ -349,7 +353,7 @@
.fromApp(APP_ID)
.forDevice(DEVICE_ID)
.makePermanent()
- .forTable(FabricConstants.TBL_FWD_CLASSIFIER_ID)
+ .forTable(FabricConstants.FABRIC_INGRESS_FILTERING_FWD_CLASSIFIER)
.build();
}
}