Implements [CORD-96] and [CORD-410]
Changes:
- Introduces L2TunnelHandler for managing the pws;
- Supports pws initiation and pws policy for olt<->vsg communication;
- Supports teardown and update;
Change-Id: If51272c91445f618727434606edd2491f93cc4dd
diff --git a/drivers/default/src/main/java/org/onosproject/driver/pipeline/Ofdpa2Pipeline.java b/drivers/default/src/main/java/org/onosproject/driver/pipeline/Ofdpa2Pipeline.java
index a49e4fa..e32f5d5 100644
--- a/drivers/default/src/main/java/org/onosproject/driver/pipeline/Ofdpa2Pipeline.java
+++ b/drivers/default/src/main/java/org/onosproject/driver/pipeline/Ofdpa2Pipeline.java
@@ -102,8 +102,12 @@
*
*/
public class Ofdpa2Pipeline extends AbstractHandlerBehaviour implements Pipeliner {
+
protected static final int PORT_TABLE = 0;
protected static final int VLAN_TABLE = 10;
+ protected static final int VLAN_1_TABLE = 11;
+ protected static final int MPLS_L2_PORT_FLOW_TABLE = 13;
+ protected static final int MPLS_L2_PORT_PCP_TRUST_FLOW_TABLE = 16;
protected static final int TMAC_TABLE = 20;
protected static final int UNICAST_ROUTING_TABLE = 30;
protected static final int MULTICAST_ROUTING_TABLE = 40;
@@ -120,6 +124,11 @@
protected static final int DEFAULT_PRIORITY = 0x8000;
protected static final int LOWEST_PRIORITY = 0x0;
+ protected static final int MPLS_L2_PORT_PRIORITY = 2;
+
+ protected static final int MPLS_TUNNEL_ID_BASE = 0x10000;
+ protected static final int MPLS_TUNNEL_ID_MAX = 0x1FFFF;
+
private final Logger log = getLogger(getClass());
protected ServiceDirectory serviceDirectory;
protected FlowRuleService flowRuleService;
@@ -225,6 +234,7 @@
rules.stream()
.filter(Objects::nonNull)
.forEach(flowOpsBuilder::remove);
+ log.debug("Deleting a flow rule to sw:{}", deviceId);
break;
default:
fail(fwd, ObjectiveError.UNKNOWN);