Interface RouteTargetConstrain
- All Superinterfaces:
org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>
,org.opendaylight.yangtools.binding.BindingObject
,org.opendaylight.yangtools.binding.DataContainer
,org.opendaylight.yangtools.binding.Grouping
- All Known Subinterfaces:
RouteTargetConstrainDestination
,RouteTargetConstrainRoute
@Generated("mdsal-binding-generator")
public interface RouteTargetConstrain
extends org.opendaylight.yangtools.binding.Grouping
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; } } }
-
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.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.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
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.
-