Interface BgpAttributeConditions
- 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:
BgpConditions
@Generated("mdsal-binding-generator")
public interface BgpAttributeConditions
extends org.opendaylight.yangtools.binding.Grouping
Condition statement definitions for comparing a BGP route attribute to a
specified value
This 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 { } } } }
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
This class represents the following YANG schema fragment defined in module openconfig-bgp-policy -
Method Summary
Modifier and TypeMethodDescription@Nullable Set
<AfiSafiType> Return afiSafiIn, ornull
if it is not present.Return asPathLength, ornull
if it is not present.Return communityCount, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint32
Return localPrefEq, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint32
getMedEq()
Return medEq, ornull
if it is not present.@Nullable Set
<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> Return nextHopIn, ornull
if it is not present.Return originEq, ornull
if it is not present.Return routeType, ornull
if it is not present.default @NonNull Set
<AfiSafiType> Return afiSafiIn, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32
Return localPrefEq, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32
Return medEq, guaranteed to be non-null.default @NonNull Set
<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> Return nextHopIn, guaranteed to be non-null.default @NonNull BgpOriginAttrType
Return originEq, guaranteed to be non-null.default @NonNull BgpAttributeConditions.RouteType
Return routeType, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
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
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 Set<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:
Set<IpAddress>
nextHopIn, ornull
if it is not present.
-
requireNextHopIn
default @NonNull Set<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:
Set<IpAddress>
nextHopIn, guaranteed to be non-null.- Throws:
NoSuchElementException
- if nextHopIn is not present
-
getAfiSafiIn
@Nullable Set<AfiSafiType> getAfiSafiIn()Return afiSafiIn, ornull
if it is not present.List of address families which the NLRI may be within
- Returns:
Set<AfiSafiType>
afiSafiIn, ornull
if it is not present.
-
requireAfiSafiIn
Return afiSafiIn, guaranteed to be non-null.List of address families which the NLRI may be within
- Returns:
Set<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
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
-