Interface BgpDefaultRouteDistanceConfig

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:
Config, State

@Generated("mdsal-binding-generator") public interface BgpDefaultRouteDistanceConfig extends org.opendaylight.yangtools.binding.Grouping
Configuration options relating to the administrative distance (or preference) assigned to routes received from different sources (external, internal, and local).

This class represents the following YANG schema fragment defined in module openconfig-bgp

 grouping bgp-default-route-distance_config {
   leaf external-route-distance {
     type uint8 {
       range 1..255;
     }
   }
   leaf internal-route-distance {
     type uint8 {
       range 1..255;
     }
   }
 }
 
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opendaylight.yangtools.yang.common.Uint8
    Return externalRouteDistance, or null if it is not present.
    org.opendaylight.yangtools.yang.common.Uint8
    Return internalRouteDistance, or null if it is not present.
    default @NonNull org.opendaylight.yangtools.yang.common.Uint8
    Return externalRouteDistance, guaranteed to be non-null.
    default @NonNull org.opendaylight.yangtools.yang.common.Uint8
    Return internalRouteDistance, guaranteed to be non-null.

    Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract

    implementedInterface
  • Method Details

    • getExternalRouteDistance

      org.opendaylight.yangtools.yang.common.Uint8 getExternalRouteDistance()
      Return externalRouteDistance, or null if it is not present.
           
               Administrative distance for routes learned from external BGP (eBGP).
           
       
      Returns:
      Uint8 externalRouteDistance, or null if it is not present.
    • requireExternalRouteDistance

      default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireExternalRouteDistance()
      Return externalRouteDistance, guaranteed to be non-null.
           
               Administrative distance for routes learned from external BGP (eBGP).
           
       
      Returns:
      Uint8 externalRouteDistance, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if externalRouteDistance is not present
    • getInternalRouteDistance

      org.opendaylight.yangtools.yang.common.Uint8 getInternalRouteDistance()
      Return internalRouteDistance, or null if it is not present.
           
               Administrative distance for routes learned from internal BGP (iBGP).
           
       
      Returns:
      Uint8 internalRouteDistance, or null if it is not present.
    • requireInternalRouteDistance

      default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireInternalRouteDistance()
      Return internalRouteDistance, guaranteed to be non-null.
           
               Administrative distance for routes learned from internal BGP (iBGP).
           
       
      Returns:
      Uint8 internalRouteDistance, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if internalRouteDistance is not present