BmpMsg
- typeBmpMsg
BMP message.
- functionhas_attribute(msg: BmpMsg, to_match: u8) bool
Check whether this message contains the given Path Attribute.
- functionis_ibgp(msg: BmpMsg, asn: Asn) bool
Check whether this is an iBGP message based on a given
asn.Return true if
asnmatches the asn in theBmpMsg. returns false if no PPH is present.
- functionis_peer_down(msg: BmpMsg) bool
Check whether this message is of type ‘PeerDownNotification’.
- functionis_route_monitoring(msg: BmpMsg) bool
Check whether this message is of type ‘RouteMonitoring’.
- functionlarge_communities(msg: BmpMsg) Option[List[LargeCommunity]]
Return a
ListofLargeCommunityin this message.