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:
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 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 {
       }
     }
   }
 }
 
  • Field Details

    • QNAME

      static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
      YANG identifier of the statement represented by this class.
  • Method Details

    • implementedInterface

      Class<? extends BgpAttributeConditions> implementedInterface()
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
    • getMedEq

      org.opendaylight.yangtools.yang.common.Uint32 getMedEq()
      Return medEq, or null if it is not present.
           
               Condition to check if the received MED value is equal to the specified value
           
       
      Returns:
      Uint32 medEq, or null 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, or null if it is not present.
           
               Condition to check if the route origin is equal to the specified value
           
       
      Returns:
      BgpOriginAttrType originEq, or null 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 Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> getNextHopIn()
      Return nextHopIn, or null if it is not present.
           
               List of next hop addresses to check for in the route update
           
       
      Returns:
      Set<IpAddress> nextHopIn, or null 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, or null if it is not present.
           
               List of address families which the NLRI may be within
           
       
      Returns:
      Set<AfiSafiType> afiSafiIn, or null if it is not present.
    • requireAfiSafiIn

      default @NonNull Set<AfiSafiType> 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, or null if it is not present.
           
               Condition to check if the local pref attribute is equal to the specified value
           
       
      Returns:
      Uint32 localPrefEq, or null 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, or null if it is not present.
           
               Value and comparison operations for conditions based on the number of
               communities in the route update
           
       
      Returns:
      CommunityCount communityCount, or null if it is not present.
    • getAsPathLength

      AsPathLength getAsPathLength()
      Return asPathLength, or null 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, or null if it is not present.
    • getRouteType

      Return routeType, or null if it is not present.
           
               Condition to check the route type in the route update
           
       
      Returns:
      RouteType routeType, or null 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