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:
Neighbors

@Generated("mdsal-binding-generator") public interface BgpNeighbors extends org.opendaylight.yangtools.yang.binding.DataObject
BGP neighbors configured on the local system

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

 grouping bgp-neighbors {
   list neighbor {
     key neighbor-address;
     leaf neighbor-address {
       type inet:ip-address;
     }
     uses bgp-neighbor-group;
   }
 }
 
  • 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
    Return neighbor, or null if it is not present.
    Class<? extends BgpNeighbors>
     
    default @NonNull Map<NeighborKey,Neighbor>
    Return neighbor, or an empty list if it is not present.
  • 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 BgpNeighbors> 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
    • getNeighbor

      @Nullable Map<NeighborKey,Neighbor> getNeighbor()
      Return neighbor, or null if it is not present.
           
               List of BGP neighbors configured on the local system, uniquely identified by
               peer IPv[46] address
           
       
      Returns:
      Map<NeighborKey, Neighbor> neighbor, or null if it is not present.
    • nonnullNeighbor

      default @NonNull Map<NeighborKey,Neighbor> nonnullNeighbor()
      Return neighbor, or an empty list if it is not present.
      Returns:
      Map<NeighborKey, Neighbor> neighbor, or an empty list if it is not present.