All Superinterfaces:
org.opendaylight.yangtools.binding.Augmentable<Peer>, org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>, org.opendaylight.yangtools.binding.BindingObject, org.opendaylight.yangtools.binding.ChildOf<Peers>, org.opendaylight.yangtools.binding.DataContainer, org.opendaylight.yangtools.binding.DataObject, org.opendaylight.yangtools.binding.EntryObject<Peer,PeerKey>, org.opendaylight.yangtools.binding.Grouping, org.opendaylight.yangtools.binding.KeyAware<PeerKey>, Peer

@Generated("mdsal-binding-generator") public interface Peer extends org.opendaylight.yangtools.binding.ChildOf<Peers>, Peer, org.opendaylight.yangtools.binding.EntryObject<Peer,PeerKey>

This class represents the following YANG schema fragment defined in module bmp-monitor

 list peer {
   key peer-id;
   leaf peer-id {
     type rib:peer-id;
   }
   uses bmp-msg:peer;
   leaf router-distinguisher {
     type string;
   }
   container peer-session {
     uses bmp-msg:peer-up;
     leaf status {
       type status;
     }
     uses bmp-msg:timestamp;
   }
   container stats {
     leaf rejected-prefixes {
       type yang:counter32;
     }
     leaf duplicate-prefix-advertisements {
       type yang:counter32;
     }
     leaf duplicate-withdraws {
       type yang:counter32;
     }
     leaf invalidated-cluster-list-loop {
       type yang:counter32;
     }
     leaf invalidated-as-path-loop {
       type yang:counter32;
     }
     leaf invalidated-originator-id {
       type yang:counter32;
     }
     leaf invalidated-as-confed-loop {
       type yang:counter32;
     }
     leaf adj-ribs-in-routes {
       type yang:gauge64;
     }
     leaf loc-rib-routes {
       type yang:gauge64;
     }
     container per-afi-safi-adj-rib-in-routes {
       uses afi-safi-route-counter;
     }
     container per-afi-safi-loc-rib-routes {
       uses afi-safi-route-counter;
     }
     leaf updates-treated-as-withdraw {
       type yang:counter32;
     }
     leaf prefixes-treated-as-withdraw {
       type yang:counter32;
     }
     leaf duplicate-updates {
       type yang:counter32;
     }
     uses bmp-msg:timestamp;
   }
   container pre-policy-rib {
     uses rib:rib;
   }
   container post-policy-rib {
     uses rib:rib;
   }
   container mirrors {
     leaf information {
       type bmp-msg:mirror-information-code;
     }
     uses bmp-msg:timestamp;
   }
 }
 

To create instances of this class use PeerBuilder.

See Also:
  • 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

      default Class<Peer> implementedInterface()
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.binding.DataObject
    • bindingHashCode

      static int bindingHashCode(@NonNull Peer obj)
      Default implementation of Object.hashCode() contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.
      Parameters:
      obj - Object for which to generate hashCode() result.
      Returns:
      Hash code value of data modeled by this interface.
      Throws:
      NullPointerException - if obj is null
    • bindingEquals

      static boolean bindingEquals(@NonNull Peer thisObj, Object obj)
      Default implementation of Object.equals(Object) contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.
      Parameters:
      thisObj - Object acting as the receiver of equals invocation
      obj - Object acting as argument to equals invocation
      Returns:
      True if thisObj and obj are considered equal
      Throws:
      NullPointerException - if thisObj is null
    • bindingToString

      static String bindingToString(@NonNull Peer obj)
      Default implementation of Object.toString() contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.
      Parameters:
      obj - Object for which to generate toString() result.
      Returns:
      String value of data modeled by this interface.
      Throws:
      NullPointerException - if obj is null
    • key

      PeerKey key()
      Specified by:
      key in interface org.opendaylight.yangtools.binding.KeyAware<PeerKey>
    • getPeerId

      PeerId getPeerId()
      Return peerId, or null if it is not present.
      Returns:
      PeerId peerId, or null if it is not present.
    • requirePeerId

      default @NonNull PeerId requirePeerId()
      Return peerId, guaranteed to be non-null.
      Returns:
      PeerId peerId, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if peerId is not present
    • getRouterDistinguisher

      String getRouterDistinguisher()
      Return routerDistinguisher, or null if it is not present.
      Returns:
      String routerDistinguisher, or null if it is not present.
    • requireRouterDistinguisher

      default @NonNull String requireRouterDistinguisher()
      Return routerDistinguisher, guaranteed to be non-null.
      Returns:
      String routerDistinguisher, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if routerDistinguisher is not present
    • getPeerSession

      PeerSession getPeerSession()
      Return peerSession, or null if it is not present.
      Returns:
      PeerSession peerSession, or null if it is not present.
    • nonnullPeerSession

      @NonNull PeerSession nonnullPeerSession()
      Return peerSession, or an empty instance if it is not present.
      Returns:
      PeerSession peerSession, or an empty instance if it is not present.
    • getStats

      Stats getStats()
      Return stats, or null if it is not present.
      Returns:
      Stats stats, or null if it is not present.
    • nonnullStats

      @NonNull Stats nonnullStats()
      Return stats, or an empty instance if it is not present.
      Returns:
      Stats stats, or an empty instance if it is not present.
    • getPrePolicyRib

      PrePolicyRib getPrePolicyRib()
      Return prePolicyRib, or null if it is not present.
      Returns:
      PrePolicyRib prePolicyRib, or null if it is not present.
    • nonnullPrePolicyRib

      @NonNull PrePolicyRib nonnullPrePolicyRib()
      Return prePolicyRib, or an empty instance if it is not present.
      Returns:
      PrePolicyRib prePolicyRib, or an empty instance if it is not present.
    • getPostPolicyRib

      PostPolicyRib getPostPolicyRib()
      Return postPolicyRib, or null if it is not present.
      Returns:
      PostPolicyRib postPolicyRib, or null if it is not present.
    • nonnullPostPolicyRib

      @NonNull PostPolicyRib nonnullPostPolicyRib()
      Return postPolicyRib, or an empty instance if it is not present.
      Returns:
      PostPolicyRib postPolicyRib, or an empty instance if it is not present.
    • getMirrors

      Mirrors getMirrors()
      Return mirrors, or null if it is not present.
      Returns:
      Mirrors mirrors, or null if it is not present.
    • nonnullMirrors

      @NonNull Mirrors nonnullMirrors()
      Return mirrors, or an empty instance if it is not present.
      Returns:
      Mirrors mirrors, or an empty instance if it is not present.