Interface BgpAttributeConditions
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
BgpConditions
@Generated("mdsal-binding-generator") public interface BgpAttributeConditions extends org.opendaylight.yangtools.yang.binding.DataObject
Condition statement definitions for comparing a BGP route attribute to a specified valueThis class represents the following YANG schema fragment defined in module openconfig-bgp-policy
grouping bgp-attribute-conditions { leaf med-eq { type uint32; } leaf origin-eq { type bgp-types:bgp-origin-attr-type; } leaf-list next-hop-in { type inet:ip-address; } leaf-list afi-safi-in { type identityref { base afi-safi-type; } } leaf local-pref-eq { type uint32; } container community-count { presence "node is present in the config data to indicate a community-count condition"; uses pt:attribute-compare-operators; } container as-path-length { presence "node is present in the config data to indicate a as-path-length condition"; uses pt:attribute-compare-operators; } leaf route-type { type enumeration { enum INTERNAL { } enum EXTERNAL { } } } }
The schema path to identify an instance is openconfig-bgp-policybgp-attribute-conditions
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
BgpAttributeConditions.RouteType
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @Nullable List<Class<? extends AfiSafiType>>
getAfiSafiIn()
Return afiSafiIn, ornull
if it is not present.AsPathLength
getAsPathLength()
Return asPathLength, ornull
if it is not present.CommunityCount
getCommunityCount()
Return communityCount, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint32
getLocalPrefEq()
Return localPrefEq, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint32
getMedEq()
Return medEq, ornull
if it is not present.@Nullable List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress>
getNextHopIn()
Return nextHopIn, ornull
if it is not present.BgpOriginAttrType
getOriginEq()
Return originEq, ornull
if it is not present.BgpAttributeConditions.RouteType
getRouteType()
Return routeType, ornull
if it is not present.Class<? extends BgpAttributeConditions>
implementedInterface()
default @NonNull List<Class<? extends AfiSafiType>>
requireAfiSafiIn()
Return afiSafiIn, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32
requireLocalPrefEq()
Return localPrefEq, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32
requireMedEq()
Return medEq, guaranteed to be non-null.default @NonNull List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress>
requireNextHopIn()
Return nextHopIn, guaranteed to be non-null.default @NonNull BgpOriginAttrType
requireOriginEq()
Return originEq, guaranteed to be non-null.default @NonNull BgpAttributeConditions.RouteType
requireRouteType()
Return routeType, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends BgpAttributeConditions> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getMedEq
org.opendaylight.yangtools.yang.common.Uint32 getMedEq()
Return medEq, ornull
if it is not present.Condition to check if the received MED value is equal to the specified value
- Returns:
Uint32
medEq, ornull
if it is not present.
-
requireMedEq
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireMedEq()
Return medEq, guaranteed to be non-null.Condition to check if the received MED value is equal to the specified value
- Returns:
Uint32
medEq, guaranteed to be non-null.- Throws:
NoSuchElementException
- if medEq is not present
-
getOriginEq
BgpOriginAttrType getOriginEq()
Return originEq, ornull
if it is not present.Condition to check if the route origin is equal to the specified value
- Returns:
BgpOriginAttrType
originEq, ornull
if it is not present.
-
requireOriginEq
default @NonNull BgpOriginAttrType requireOriginEq()
Return originEq, guaranteed to be non-null.Condition to check if the route origin is equal to the specified value
- Returns:
BgpOriginAttrType
originEq, guaranteed to be non-null.- Throws:
NoSuchElementException
- if originEq is not present
-
getNextHopIn
@Nullable List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> getNextHopIn()
Return nextHopIn, ornull
if it is not present.List of next hop addresses to check for in the route update
- Returns:
List<IpAddress>
nextHopIn, ornull
if it is not present.
-
requireNextHopIn
default @NonNull List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> requireNextHopIn()
Return nextHopIn, guaranteed to be non-null.List of next hop addresses to check for in the route update
- Returns:
List<IpAddress>
nextHopIn, guaranteed to be non-null.- Throws:
NoSuchElementException
- if nextHopIn is not present
-
getAfiSafiIn
@Nullable List<Class<? extends AfiSafiType>> getAfiSafiIn()
Return afiSafiIn, ornull
if it is not present.List of address families which the NLRI may be within
- Returns:
List<Class<? extends AfiSafiType>>
afiSafiIn, ornull
if it is not present.
-
requireAfiSafiIn
default @NonNull List<Class<? extends AfiSafiType>> requireAfiSafiIn()
Return afiSafiIn, guaranteed to be non-null.List of address families which the NLRI may be within
- Returns:
List<Class<? extends AfiSafiType>>
afiSafiIn, guaranteed to be non-null.- Throws:
NoSuchElementException
- if afiSafiIn is not present
-
getLocalPrefEq
org.opendaylight.yangtools.yang.common.Uint32 getLocalPrefEq()
Return localPrefEq, ornull
if it is not present.Condition to check if the local pref attribute is equal to the specified value
- Returns:
Uint32
localPrefEq, ornull
if it is not present.
-
requireLocalPrefEq
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireLocalPrefEq()
Return localPrefEq, guaranteed to be non-null.Condition to check if the local pref attribute is equal to the specified value
- Returns:
Uint32
localPrefEq, guaranteed to be non-null.- Throws:
NoSuchElementException
- if localPrefEq is not present
-
getCommunityCount
CommunityCount getCommunityCount()
Return communityCount, ornull
if it is not present.Value and comparison operations for conditions based on the number of communities in the route update
- Returns:
CommunityCount
communityCount, ornull
if it is not present.
-
getAsPathLength
AsPathLength getAsPathLength()
Return asPathLength, ornull
if it is not present.Value and comparison operations for conditions based on the length of the AS path in the route update
- Returns:
AsPathLength
asPathLength, ornull
if it is not present.
-
getRouteType
BgpAttributeConditions.RouteType getRouteType()
Return routeType, ornull
if it is not present.Condition to check the route type in the route update
- Returns:
RouteType
routeType, ornull
if it is not present.
-
requireRouteType
default @NonNull BgpAttributeConditions.RouteType requireRouteType()
Return routeType, guaranteed to be non-null.Condition to check the route type in the route update
- Returns:
RouteType
routeType, guaranteed to be non-null.- Throws:
NoSuchElementException
- if routeType is not present
-
-