Interface PathConstraints

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    ConstrainedPath, Constraints

    public interface PathConstraints
    extends org.opendaylight.yangtools.yang.binding.DataObject
    Set of Constraints for Path Computation

    This class represents the following YANG schema fragment defined in module path-computation

     grouping path-constraints {
       leaf metric {
         type uint32;
       }
       leaf te-metric {
         type uint32;
       }
       leaf delay {
         type gr:delay;
       }
       leaf jitter {
         type gr:delay;
       }
       leaf loss {
         type gr:loss;
       }
       leaf admin-group {
         type uint32;
       }
       leaf address-family {
         type enumeration {
           enum ipv4 {
             value 0;
           }
           enum ipv6 {
             value 1;
           }
           enum sr-ipv4 {
             value 2;
           }
           enum sr-ipv6 {
             value 3;
           }
         }
         default ipv4;
       }
       leaf class-type {
         type uint8 {
           range 0..7;
         }
       }
       leaf bandwidth {
         type gr:decimal-bandwidth;
       }
     }
     
    The schema path to identify an instance is path-computation/path-constraints
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        Class<? extends PathConstraints> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getMetric

        @Nullable org.opendaylight.yangtools.yang.common.Uint32 getMetric()
        Maximum end to end IGP metric
        Returns:
        org.opendaylight.yangtools.yang.common.Uint32 metric, or null if not present
      • getTeMetric

        @Nullable org.opendaylight.yangtools.yang.common.Uint32 getTeMetric()
        Maximum end to end Traffic Engineering metric
        Returns:
        org.opendaylight.yangtools.yang.common.Uint32 teMetric, or null if not present
      • getDelay

        @Nullable Delay getDelay()
        Maximum end to end delay
        Returns:
        org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.Delay delay, or null if not present
      • getJitter

        @Nullable Delay getJitter()
        Maximum delay variation for selected edges
        Returns:
        org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.Delay jitter, or null if not present
      • getLoss

        @Nullable Loss getLoss()
        Maximum loss for selected edges
        Returns:
        org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.Loss loss, or null if not present
      • getAdminGroup

        @Nullable org.opendaylight.yangtools.yang.common.Uint32 getAdminGroup()
        Admin group to select edges
        Returns:
        org.opendaylight.yangtools.yang.common.Uint32 adminGroup, or null if not present
      • getAddressFamily

        @Nullable PathConstraints.AddressFamily getAddressFamily()
        Address family of the computed path
        Returns:
        org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.path.computation.rev200120.PathConstraints.AddressFamily addressFamily, or null if not present
      • getClassType

        @Nullable org.opendaylight.yangtools.yang.common.Uint8 getClassType()
        Class Type for bandwidth constraints
        Returns:
        org.opendaylight.yangtools.yang.common.Uint8 classType, or null if not present
      • getBandwidth

        @Nullable DecimalBandwidth getBandwidth()
        Requested bandwidth for the computed path
        Returns:
        org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.DecimalBandwidth bandwidth, or null if not present