Class DefaultL2TunnelDescription
- java.lang.Object
-
- org.onosproject.segmentrouting.pwaas.DefaultL2TunnelDescription
-
- All Implemented Interfaces:
L2TunnelDescription
public class DefaultL2TunnelDescription extends Object implements L2TunnelDescription
Helper class to carry the l2 tunnel and its policy.
-
-
Constructor Summary
Constructors Constructor Description DefaultL2TunnelDescription()Creates an empty l2 tunnel description.DefaultL2TunnelDescription(L2Tunnel l2Tunnel, L2TunnelPolicy l2TunnelPolicy)Creates a l2 tunnel description using the given info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()L2Tunnell2Tunnel()Returns the l2 tunnel.L2TunnelPolicyl2TunnelPolicy()Returns the l2 tunnel policy.voidsetL2Tunnel(L2Tunnel tunnel)Sets the l2 tunnel.voidsetL2TunnelPolicy(L2TunnelPolicy policy)Sets the l2 policy.StringtoString()
-
-
-
Constructor Detail
-
DefaultL2TunnelDescription
public DefaultL2TunnelDescription(L2Tunnel l2Tunnel, L2TunnelPolicy l2TunnelPolicy)
Creates a l2 tunnel description using the given info.- Parameters:
l2Tunnel- the l2 tunnell2TunnelPolicy- the l2 tunnel description
-
DefaultL2TunnelDescription
public DefaultL2TunnelDescription()
Creates an empty l2 tunnel description.
-
-
Method Detail
-
l2Tunnel
public L2Tunnel l2Tunnel()
Description copied from interface:L2TunnelDescriptionReturns the l2 tunnel.- Specified by:
l2Tunnelin interfaceL2TunnelDescription- Returns:
- the l2 tunnel
-
l2TunnelPolicy
public L2TunnelPolicy l2TunnelPolicy()
Description copied from interface:L2TunnelDescriptionReturns the l2 tunnel policy.- Specified by:
l2TunnelPolicyin interfaceL2TunnelDescription- Returns:
- the l2 tunnel policy.
-
setL2Tunnel
public void setL2Tunnel(L2Tunnel tunnel)
Description copied from interface:L2TunnelDescriptionSets the l2 tunnel.- Specified by:
setL2Tunnelin interfaceL2TunnelDescription- Parameters:
tunnel- the l2 tunnel to set.
-
setL2TunnelPolicy
public void setL2TunnelPolicy(L2TunnelPolicy policy)
Description copied from interface:L2TunnelDescriptionSets the l2 policy.- Specified by:
setL2TunnelPolicyin interfaceL2TunnelDescription- Parameters:
policy- the policy to set.
-
-