Interface Peer
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
Peer
,PeerHeader
public interface Peer extends org.opendaylight.yangtools.yang.binding.DataObject
This class represents the following YANG schema fragment defined in module bmp-message
grouping peer { leaf type { type peer-type; } leaf peer-distinguisher { type union { type bgp-t:route-distinguisher; type binary { length 8; } } } leaf address { type inet:ip-address-no-zone; } leaf as { type inet:as-number; } leaf bgp-id { type inet:ipv4-address-no-zone; } }
The schema path to identify an instance is bmp-message/peer
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Peer.PeerDistinguisher
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone
getAddress()
The remote IP address associated with the TCP session over which the encapsulated PDU was received.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber
getAs()
The Autonomous System number of the peer from which the encapsulated PDU was received.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone
getBgpId()
The BGP Identifier of the peer from which the encapsulated PDU was received.Peer.PeerDistinguisher
getPeerDistinguisher()
This field is present to distinguish peers that belong to one address domain from the other.PeerType
getType()
Class<? extends Peer>
implementedInterface()
-
-
-
Method Detail
-
implementedInterface
Class<? extends Peer> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getType
PeerType getType()
- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.message.rev200120.PeerType
type
, ornull
if not present
-
getPeerDistinguisher
Peer.PeerDistinguisher getPeerDistinguisher()
This field is present to distinguish peers that belong to one address domain from the other.- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.message.rev200120.Peer.PeerDistinguisher
peerDistinguisher
, ornull
if not present
-
getAddress
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone getAddress()
The remote IP address associated with the TCP session over which the encapsulated PDU was received. It is 4 bytes long if an IPv4 address is carried in this field (with most significant bytes zero filled) and 16 bytes long if an IPv6 address is carried in this field.- Returns:
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone
address
, ornull
if not present
-
getAs
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber getAs()
The Autonomous System number of the peer from which the encapsulated PDU was received. If a 16 bit AS number is stored in this field [RFC4893], it should be padded with zeroes in the most significant bits.- Returns:
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber
as
, ornull
if not present
-
getBgpId
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone getBgpId()
The BGP Identifier of the peer from which the encapsulated PDU was received.- Returns:
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone
bgpId
, ornull
if not present
-
-