Interface BgpNeighborAsPathOptionsConfig

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

@Generated("mdsal-binding-generator") public interface BgpNeighborAsPathOptionsConfig extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration parameters allowing manipulation of the AS_PATH attribute

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

 grouping bgp-neighbor-as-path-options_config {
   leaf allow-own-as {
     type uint8;
     default 0;
   }
   leaf replace-peer-as {
     type boolean;
     default false;
   }
 }
 
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final @NonNull org.opendaylight.yangtools.yang.common.QName
    YANG identifier of the statement represented by this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opendaylight.yangtools.yang.common.Uint8
    Return allowOwnAs, or null if it is not present.
    Return replacePeerAs, or null if it is not present.
     
    default @NonNull org.opendaylight.yangtools.yang.common.Uint8
    Return allowOwnAs, guaranteed to be non-null.
    default @NonNull Boolean
    Return replacePeerAs, guaranteed to be non-null.
  • 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 BgpNeighborAsPathOptionsConfig> 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
    • getAllowOwnAs

      org.opendaylight.yangtools.yang.common.Uint8 getAllowOwnAs()
      Return allowOwnAs, or null if it is not present.
           
               Specify the number of occurrences of the local BGP speaker's AS that can occur
               within the AS_PATH before it is rejected.
           
       
      Returns:
      Uint8 allowOwnAs, or null if it is not present.
    • requireAllowOwnAs

      default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireAllowOwnAs()
      Return allowOwnAs, guaranteed to be non-null.
           
               Specify the number of occurrences of the local BGP speaker's AS that can occur
               within the AS_PATH before it is rejected.
           
       
      Returns:
      Uint8 allowOwnAs, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if allowOwnAs is not present
    • getReplacePeerAs

      Boolean getReplacePeerAs()
      Return replacePeerAs, or null if it is not present.
           
               Replace occurrences of the peer's AS in the AS_PATH with the local autonomous
               system number
           
       
      Returns:
      Boolean replacePeerAs, or null if it is not present.
    • requireReplacePeerAs

      default @NonNull Boolean requireReplacePeerAs()
      Return replacePeerAs, guaranteed to be non-null.
           
               Replace occurrences of the peer's AS in the AS_PATH with the local autonomous
               system number
           
       
      Returns:
      Boolean replacePeerAs, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if replacePeerAs is not present