Class DefaultL2TunnelPolicy
- java.lang.Object
-
- org.onosproject.segmentrouting.pwaas.DefaultL2TunnelPolicy
-
- All Implemented Interfaces:
L2TunnelPolicy
public class DefaultL2TunnelPolicy extends Object implements L2TunnelPolicy
Implementation of the default l2 tunnel policy.
-
-
Constructor Summary
Constructors Constructor Description DefaultL2TunnelPolicy(long tunnelId, org.onosproject.net.ConnectPoint cP1, org.onlab.packet.VlanId cP1InnerTag, org.onlab.packet.VlanId cP1OuterTag, org.onosproject.net.ConnectPoint cP2, org.onlab.packet.VlanId cP2InnerTag, org.onlab.packet.VlanId cP2OuterTag)Creates a default l2 tunnel policy using the given parameters.DefaultL2TunnelPolicy(DefaultL2TunnelPolicy policy)Creates a default l2 policy given the provided policy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.onosproject.net.ConnectPointcP1()Returns the first connect point of the policy.org.onlab.packet.VlanIdcP1InnerTag()Returns the cP1 inner vlan tag of the policy.org.onlab.packet.VlanIdcP1OuterTag()Returns the cP1 outer vlan tag of the policy.org.onosproject.net.ConnectPointcP2()Returns the second connect point of the policy.org.onlab.packet.VlanIdcP2InnerTag()Returns the cP2 inner vlan tag of the policy.org.onlab.packet.VlanIdcP2OuterTag()Returns the cP2 outer vlan tag of the policy.booleanequals(Object o)inthashCode()StringtoString()longtunnelId()Returns the tunnel ID of the policy.
-
-
-
Constructor Detail
-
DefaultL2TunnelPolicy
public DefaultL2TunnelPolicy(long tunnelId, org.onosproject.net.ConnectPoint cP1, org.onlab.packet.VlanId cP1InnerTag, org.onlab.packet.VlanId cP1OuterTag, org.onosproject.net.ConnectPoint cP2, org.onlab.packet.VlanId cP2InnerTag, org.onlab.packet.VlanId cP2OuterTag)Creates a default l2 tunnel policy using the given parameters.- Parameters:
tunnelId- the tunnel idcP1- the first connect pointcP1InnerTag- the cP1 inner tagcP1OuterTag- the cP1 outer tagcP2- the second connect pointcP2InnerTag- the cP2 inner tagcP2OuterTag- the cP2 outer tag
-
DefaultL2TunnelPolicy
public DefaultL2TunnelPolicy(DefaultL2TunnelPolicy policy)
Creates a default l2 policy given the provided policy.- Parameters:
policy- L2policy to replicate
-
-
Method Detail
-
cP1
public org.onosproject.net.ConnectPoint cP1()
Description copied from interface:L2TunnelPolicyReturns the first connect point of the policy.- Specified by:
cP1in interfaceL2TunnelPolicy- Returns:
- first connect point
-
cP2
public org.onosproject.net.ConnectPoint cP2()
Description copied from interface:L2TunnelPolicyReturns the second connect point of the policy.- Specified by:
cP2in interfaceL2TunnelPolicy- Returns:
- second connect point
-
cP1InnerTag
public org.onlab.packet.VlanId cP1InnerTag()
Description copied from interface:L2TunnelPolicyReturns the cP1 inner vlan tag of the policy.- Specified by:
cP1InnerTagin interfaceL2TunnelPolicy- Returns:
- cP1 inner vlan tag
-
cP1OuterTag
public org.onlab.packet.VlanId cP1OuterTag()
Description copied from interface:L2TunnelPolicyReturns the cP1 outer vlan tag of the policy.- Specified by:
cP1OuterTagin interfaceL2TunnelPolicy- Returns:
- cP1 outer vlan tag
-
cP2InnerTag
public org.onlab.packet.VlanId cP2InnerTag()
Description copied from interface:L2TunnelPolicyReturns the cP2 inner vlan tag of the policy.- Specified by:
cP2InnerTagin interfaceL2TunnelPolicy- Returns:
- cP2 inner vlan tag
-
cP2OuterTag
public org.onlab.packet.VlanId cP2OuterTag()
Description copied from interface:L2TunnelPolicyReturns the cP2 outer vlan tag of the policy.- Specified by:
cP2OuterTagin interfaceL2TunnelPolicy- Returns:
- cP2 outer vlan tag
-
tunnelId
public long tunnelId()
Description copied from interface:L2TunnelPolicyReturns the tunnel ID of the policy.- Specified by:
tunnelIdin interfaceL2TunnelPolicy- Returns:
- Tunnel ID
-
-