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
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThis class represents the following YANG schema fragment defined in module openconfig-bgp-policy -
Method Summary
Modifier and TypeMethodDescription@Nullable Set<AfiSafiType> Return afiSafiIn, ornullif it is not present.Return asPathLength, ornullif it is not present.Return communityCount, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint32Return localPrefEq, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint32getMedEq()Return medEq, ornullif it is not present.@Nullable Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> Return nextHopIn, ornullif it is not present.Return originEq, ornullif it is not present.Return routeType, ornullif it is not present.default @NonNull Set<AfiSafiType> Return afiSafiIn, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return localPrefEq, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return 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 BgpOriginAttrTypeReturn originEq, guaranteed to be non-null.default @NonNull BgpAttributeConditions.RouteTypeReturn 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, ornullif it is not present.Condition to check if the received MED value is equal to the specified value- Returns:
Uint32medEq, ornullif 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:
Uint32medEq, guaranteed to be non-null.- Throws:
NoSuchElementException- if medEq is not present
-
getOriginEq
BgpOriginAttrType getOriginEq()Return originEq, ornullif it is not present.Condition to check if the route origin is equal to the specified value- Returns:
BgpOriginAttrTypeoriginEq, ornullif 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:
BgpOriginAttrTypeoriginEq, 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, ornullif it is not present.List of next hop addresses to check for in the route update- Returns:
Set<IpAddress>nextHopIn, ornullif 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, ornullif it is not present.List of address families which the NLRI may be within- Returns:
Set<AfiSafiType>afiSafiIn, ornullif 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, ornullif it is not present.Condition to check if the local pref attribute is equal to the specified value- Returns:
Uint32localPrefEq, ornullif 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:
Uint32localPrefEq, guaranteed to be non-null.- Throws:
NoSuchElementException- if localPrefEq is not present
-
getCommunityCount
CommunityCount getCommunityCount()Return communityCount, ornullif it is not present.Value and comparison operations for conditions based on the number of communities in the route update- Returns:
CommunityCountcommunityCount, ornullif it is not present.
-
getAsPathLength
AsPathLength getAsPathLength()Return asPathLength, ornullif it is not present.Value and comparison operations for conditions based on the length of the AS path in the route update- Returns:
AsPathLengthasPathLength, ornullif it is not present.
-
getRouteType
BgpAttributeConditions.RouteType getRouteType()Return routeType, ornullif it is not present.Condition to check the route type in the route update- Returns:
RouteTyperouteType, ornullif it is not present.
-
requireRouteType
Return routeType, guaranteed to be non-null.Condition to check the route type in the route update- Returns:
RouteTyperouteType, guaranteed to be non-null.- Throws:
NoSuchElementException- if routeType is not present
-