Interface RouteTargetConstrain

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

    @Generated("mdsal-binding-generator")
    public interface RouteTargetConstrain
    extends org.opendaylight.yangtools.yang.binding.DataObject
    The Route Target constrains NLRI is carried in BGP [RFC4684] using BGP Multiprotocol Extensions [RFC4760] with an Address Family Identifier (AFI) of 1 (IPV4) and a Subsequent Address Family Identifier (SAFI) of 132 (ROUTE-TARGET)

    This class represents the following YANG schema fragment defined in module bgp-route-target-constrain

     grouping route-target-constrain {
       leaf origin-as {
         type inet:as-number;
       }
       choice route-target-constrain-choice {
         case route-target-constrain-default-case {
           uses bgp-t:route-target-constrain-default-route-grouping;
         }
         case route-target-constrain-route-case {
           uses bgp-t:route-target-extended-community-grouping;
         }
         case route-target-constrain-ipv4-route-case {
           uses bgp-t:route-target-ipv4-grouping;
         }
         case route-target-constrain-as-4-extended-community-case {
           uses bgp-t:as-4-route-target-extended-community-grouping;
         }
       }
     }
     
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
        YANG identifier of the statement represented by this class.
    • Method Detail

      • implementedInterface

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

        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber getOriginAs()
        Return originAs, or null if it is not present.
        Returns:
        AsNumber originAs, or null if it is not present.
      • requireOriginAs

        default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber requireOriginAs()
        Return originAs, guaranteed to be non-null.
        Returns:
        AsNumber originAs, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if originAs is not present
      • getRouteTargetConstrainChoice

        RouteTargetConstrainChoice getRouteTargetConstrainChoice()
        Return routeTargetConstrainChoice, or null if it is not present.
        Returns:
        RouteTargetConstrainChoice routeTargetConstrainChoice, or null if it is not present.