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

    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 {
           }
         }
       }
     }
     
    The schema path to identify an instance is openconfig-bgp-policy/bgp-attribute-conditions
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

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

        @Nullable org.opendaylight.yangtools.yang.common.Uint32 getMedEq()
        Condition to check if the received MED value is equal to the specified value
        Returns:
        org.opendaylight.yangtools.yang.common.Uint32 medEq, or null if not present
      • getOriginEq

        @Nullable BgpOriginAttrType getOriginEq()
        Condition to check if the route origin is equal to the specified value
        Returns:
        org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.types.rev151009.BgpOriginAttrType originEq, or null if not present
      • getNextHopIn

        @Nullable List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> getNextHopIn()
        List of next hop addresses to check for in the route update
        Returns:
        java.util.List nextHopIn, or null if not present
      • getAfiSafiIn

        @Nullable List<Class<? extends AfiSafiType>> getAfiSafiIn()
        List of address families which the NLRI may be within
        Returns:
        java.util.List afiSafiIn, or null if not present
      • getLocalPrefEq

        @Nullable org.opendaylight.yangtools.yang.common.Uint32 getLocalPrefEq()
        Condition to check if the local pref attribute is equal to the specified value
        Returns:
        org.opendaylight.yangtools.yang.common.Uint32 localPrefEq, or null if not present
      • getCommunityCount

        @Nullable CommunityCount getCommunityCount()
        Value and comparison operations for conditions based on the number of communities in the route update
        Returns:
        org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.policy.rev151009.bgp.attribute.conditions.CommunityCount communityCount, or null if not present
      • getAsPathLength

        @Nullable AsPathLength getAsPathLength()
        Value and comparison operations for conditions based on the length of the AS path in the route update
        Returns:
        org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.policy.rev151009.bgp.attribute.conditions.AsPathLength asPathLength, or null if not present
      • getRouteType

        @Nullable BgpAttributeConditions.RouteType getRouteType()
        Condition to check the route type in the route update
        Returns:
        org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.policy.rev151009.BgpAttributeConditions.RouteType routeType, or null if not present