Package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.monitor.rev200120.peers
Interface Peer
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<Peer>
,org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.ChildOf<Peers>
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
,org.opendaylight.yangtools.yang.binding.Identifiable<PeerKey>
,Peer
@Generated("mdsal-binding-generator") public interface Peer extends org.opendaylight.yangtools.yang.binding.ChildOf<Peers>, org.opendaylight.yangtools.yang.binding.Augmentable<Peer>, Peer, org.opendaylight.yangtools.yang.binding.Identifiable<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; } }
The schema path to identify an instance is bmp-monitor/peers/peerTo create instances of this class use
PeerBuilder
.- See Also:
PeerBuilder
,PeerKey
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.message.rev200120.Peer
Peer.PeerDistinguisher
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static boolean
bindingEquals(@NonNull Peer thisObj, Object obj)
Default implementation ofObject.equals(Object)
contract for this interface.static int
bindingHashCode(@NonNull Peer obj)
Default implementation ofObject.hashCode()
contract for this interface.static String
bindingToString(@NonNull Peer obj)
Default implementation ofObject.toString()
contract for this interface.Mirrors
getMirrors()
Return mirrors, ornull
if it is not present.PeerId
getPeerId()
Return peerId, ornull
if it is not present.PeerSession
getPeerSession()
Return peerSession, ornull
if it is not present.PostPolicyRib
getPostPolicyRib()
Return postPolicyRib, ornull
if it is not present.PrePolicyRib
getPrePolicyRib()
Return prePolicyRib, ornull
if it is not present.String
getRouterDistinguisher()
Return routerDistinguisher, ornull
if it is not present.Stats
getStats()
Return stats, ornull
if it is not present.default Class<Peer>
implementedInterface()
PeerKey
key()
-
Methods inherited from interface org.opendaylight.yangtools.yang.binding.Augmentable
augmentation, augmentations
-
Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.message.rev200120.Peer
getAddress, getAs, getBgpId, getPeerDistinguisher, getType
-
-
-
-
Method Detail
-
implementedInterface
default Class<Peer> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
- Specified by:
implementedInterface
in interfacePeer
-
bindingHashCode
static int bindingHashCode(@NonNull Peer obj)
Default implementation ofObject.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
- ifobj
is null
-
bindingEquals
static boolean bindingEquals(@NonNull Peer thisObj, Object obj)
Default implementation ofObject.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 invocationobj
- Object acting as argument to equals invocation- Returns:
- True if thisObj and obj are considered equal
- Throws:
NullPointerException
- ifthisObj
is null
-
bindingToString
static String bindingToString(@NonNull Peer obj)
Default implementation ofObject.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
- ifobj
is null
-
getPeerId
PeerId getPeerId()
Return peerId, ornull
if it is not present.- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.PeerId
peerId, ornull
if it is not present.
-
getRouterDistinguisher
String getRouterDistinguisher()
Return routerDistinguisher, ornull
if it is not present.- Returns:
java.lang.String
routerDistinguisher, ornull
if it is not present.
-
getPeerSession
PeerSession getPeerSession()
Return peerSession, ornull
if it is not present.- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.monitor.rev200120.peers.peer.PeerSession
peerSession, ornull
if it is not present.
-
getStats
Stats getStats()
Return stats, ornull
if it is not present.- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.monitor.rev200120.peers.peer.Stats
stats, ornull
if it is not present.
-
getPrePolicyRib
PrePolicyRib getPrePolicyRib()
Return prePolicyRib, ornull
if it is not present.- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.monitor.rev200120.peers.peer.PrePolicyRib
prePolicyRib, ornull
if it is not present.
-
getPostPolicyRib
PostPolicyRib getPostPolicyRib()
Return postPolicyRib, ornull
if it is not present.- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.monitor.rev200120.peers.peer.PostPolicyRib
postPolicyRib, ornull
if it is not present.
-
getMirrors
Mirrors getMirrors()
Return mirrors, ornull
if it is not present.- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.monitor.rev200120.peers.peer.Mirrors
mirrors, ornull
if it is not present.
-
-