Package org.onosproject.segmentrouting
Interface Policy
-
- All Known Implementing Classes:
TunnelPolicy
public interface PolicyInterface for Segment Routing Policy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPolicy.TypeEnums for policy type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringdstIp()Returns the destination IP address of the policy.shortdstPort()Returns the destination of the policy.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.Policy.Typetype()Returns the policy type.
-
-
-
Method Detail
-
id
String id()
Returns the policy ID.- Returns:
- policy ID
-
priority
int priority()
Returns the priority of the policy.- Returns:
- priority
-
type
Policy.Type type()
Returns the policy type.- Returns:
- policy type
-
srcIp
String srcIp()
Returns the source IP address of the policy.- Returns:
- source IP address
-
dstIp
String dstIp()
Returns the destination IP address of the policy.- Returns:
- destination IP address
-
ipProto
String ipProto()
Returns the IP protocol of the policy.- Returns:
- IP protocol
-
srcPort
short srcPort()
Returns the source port of the policy.- Returns:
- source port
-
dstPort
short dstPort()
Returns the destination of the policy.- Returns:
- destination port
-
-