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 Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
YANG identifier of the statement represented by this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber
getOriginAs()
Return originAs, ornull
if it is not present.RouteTargetConstrainChoice
getRouteTargetConstrainChoice()
Return routeTargetConstrainChoice, ornull
if it is not present.Class<? extends RouteTargetConstrain>
implementedInterface()
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.
-
-
-
Method Detail
-
implementedInterface
Class<? extends RouteTargetConstrain> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.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, ornull
if it is not present.- Returns:
AsNumber
originAs, ornull
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, ornull
if it is not present.- Returns:
RouteTargetConstrainChoice
routeTargetConstrainChoice, ornull
if it is not present.
-
-