Class DefaultL2Tunnel
- java.lang.Object
-
- org.onosproject.segmentrouting.pwaas.DefaultL2Tunnel
-
-
Constructor Summary
Constructors Constructor Description DefaultL2Tunnel()Creates an empty l2 tunnel.DefaultL2Tunnel(DefaultL2Tunnel l2Tunnel)Creates a l2Tunnel from a given tunnel.DefaultL2Tunnel(L2Mode mode, org.onlab.packet.VlanId sdtag, long tunnelId, org.onlab.packet.MplsLabel pwLabel)Creates a intra-co l2 tunnel using the supplied parameters.DefaultL2Tunnel(L2Mode mode, org.onlab.packet.VlanId sdtag, long tunnelId, org.onlab.packet.MplsLabel pwLabel, org.onlab.packet.MplsLabel interCoLabel)Creates a inter-co l2 tunnel using the supplied parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()org.onlab.packet.MplsLabelinterCoLabel()Returns the inter-co label.List<org.onosproject.net.Link>pathUsed()Returns the used path of the pseudowire.org.onlab.packet.MplsLabelpwLabel()Returns the pw label.L2ModepwMode()Returns the mode of the pseudo wire.org.onlab.packet.VlanIdsdTag()Returns the service delimitation tag.voidsetPath(List<org.onosproject.net.Link> path)Set the path for the pseudowire.voidsetTransportVlan(org.onlab.packet.VlanId vlan)Set the transport vlan for the pseudowire.StringtoString()org.onlab.packet.VlanIdtransportVlan()Returns the transport vlan used by the pseudowire.longtunnelId()Returns the tunnel id of the pseudo wire.
-
-
-
Constructor Detail
-
DefaultL2Tunnel
public DefaultL2Tunnel(L2Mode mode, org.onlab.packet.VlanId sdtag, long tunnelId, org.onlab.packet.MplsLabel pwLabel, org.onlab.packet.MplsLabel interCoLabel)
Creates a inter-co l2 tunnel using the supplied parameters.- Parameters:
mode- the tunnel modesdtag- the service delimiting tagtunnelId- the tunnel idpwLabel- the pseudo wire labelinterCoLabel- the inter central office label
-
DefaultL2Tunnel
public DefaultL2Tunnel(DefaultL2Tunnel l2Tunnel)
Creates a l2Tunnel from a given tunnel.- Parameters:
l2Tunnel- to replicate
-
DefaultL2Tunnel
public DefaultL2Tunnel(L2Mode mode, org.onlab.packet.VlanId sdtag, long tunnelId, org.onlab.packet.MplsLabel pwLabel)
Creates a intra-co l2 tunnel using the supplied parameters.- Parameters:
mode- the tunnel modesdtag- the service delimiting tagtunnelId- the tunnel idpwLabel- the pseudo wire label
-
DefaultL2Tunnel
public DefaultL2Tunnel()
Creates an empty l2 tunnel.
-
-
Method Detail
-
pwMode
public L2Mode pwMode()
Returns the mode of the pseudo wire.
-
sdTag
public org.onlab.packet.VlanId sdTag()
Returns the service delimitation tag.
-
tunnelId
public long tunnelId()
Returns the tunnel id of the pseudo wire.
-
pwLabel
public org.onlab.packet.MplsLabel pwLabel()
Returns the pw label.
-
setPath
public void setPath(List<org.onosproject.net.Link> path)
Set the path for the pseudowire.
-
setTransportVlan
public void setTransportVlan(org.onlab.packet.VlanId vlan)
Set the transport vlan for the pseudowire.- Specified by:
setTransportVlanin interfaceL2Tunnel- Parameters:
vlan- the vlan to use.
-
pathUsed
public List<org.onosproject.net.Link> pathUsed()
Returns the used path of the pseudowire.
-
transportVlan
public org.onlab.packet.VlanId transportVlan()
Description copied from interface:L2TunnelReturns the transport vlan used by the pseudowire.- Specified by:
transportVlanin interfaceL2Tunnel- Returns:
- The transport vlan
-
interCoLabel
public org.onlab.packet.MplsLabel interCoLabel()
Returns the inter-co label.- Specified by:
interCoLabelin interfaceL2Tunnel- Returns:
- the mpls inter-co label
-
-