Package org.onosproject.segmentrouting
Class TunnelPolicy
- java.lang.Object
-
- org.onosproject.segmentrouting.TunnelPolicy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTunnelPolicy.BuilderTunnel Policy Builder.-
Nested classes/interfaces inherited from interface org.onosproject.segmentrouting.Policy
Policy.Type
-
-
Constructor Summary
Constructors Constructor Description TunnelPolicy(TunnelPolicy p)Creates a TunnelPolicy reference.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TunnelPolicy.Builderbuilder()Returns the TunnelPolicy builder reference.StringdstIp()Returns the destination IP address of the policy.shortdstPort()Returns the destination of the policy.booleanequals(Object o)inthashCode()Stringid()Returns the policy ID.StringipProto()Returns the IP protocol of the policy.intpriority()Returns the priority of the policy.StringsrcIp()Returns the source IP address of the policy.shortsrcPort()Returns the source port of the policy.StringtunnelId()Returns the tunnel ID of the policy.Policy.Typetype()Returns the policy type.
-
-
-
Constructor Detail
-
TunnelPolicy
public TunnelPolicy(TunnelPolicy p)
Creates a TunnelPolicy reference.- Parameters:
p- TunnelPolicy reference
-
-
Method Detail
-
builder
public static TunnelPolicy.Builder builder()
Returns the TunnelPolicy builder reference.- Returns:
- TunnelPolicy builder
-
priority
public int priority()
Description copied from interface:PolicyReturns the priority of the policy.
-
type
public Policy.Type type()
Description copied from interface:PolicyReturns the policy type.
-
srcIp
public String srcIp()
Description copied from interface:PolicyReturns the source IP address of the policy.
-
dstIp
public String dstIp()
Description copied from interface:PolicyReturns the destination IP address of the policy.
-
ipProto
public String ipProto()
Description copied from interface:PolicyReturns the IP protocol of the policy.
-
srcPort
public short srcPort()
Description copied from interface:PolicyReturns the source port of the policy.
-
dstPort
public short dstPort()
Description copied from interface:PolicyReturns the destination of the policy.
-
tunnelId
public String tunnelId()
Returns the tunnel ID of the policy.- Returns:
- Tunnel ID
-
-