Interface RouteTargetConstrain
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
,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
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber
Return originAs, ornull
if it is not present.Return routeTargetConstrainChoice, ornull
if it is not present.Class<? extends RouteTargetConstrain>
default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber
Return originAs, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends RouteTargetConstrain> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.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.
-