Interface Policy

  • All Known Implementing Classes:
    TunnelPolicy

    public interface Policy
    Interface for Segment Routing Policy.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  Policy.Type
      Enums for 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