From 8a17966ed7ed13a5da8a17e4d67b6f163d260088 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Wed, 13 Dec 2023 16:59:01 +0000 Subject: T4163: Add BGP Monitoring Protocol BMP feature Add BMP feature. BMP (BGP Monitoring Protocol, RFC 7854) is used to send monitoring data from BGP routers to network management entities https://docs.frrouting.org/en/latest/bmp.html Example: set system frr bmp commit run restart bgp set protocols bgp system-as '65001' set protocols bgp neighbor 192.0.2.11 address-family ipv4-unicast set protocols bgp neighbor 192.0.2.11 remote-as '65001' set protocols bgp bmp mirror-buffer-limit '256000000' set protocols bgp bmp target foo address '127.0.0.1' set protocols bgp bmp target foo port '5000' set protocols bgp bmp target foo min-retry '1000' set protocols bgp bmp target foo max-retry '2000' set protocols bgp bmp target foo mirror set protocols bgp bmp target foo monitor ipv4-unicast post-policy set protocols bgp bmp target foo monitor ipv4-unicast pre-policy set protocols bgp bmp target foo monitor ipv6-unicast post-policy set protocols bgp bmp target foo monitor ipv6-unicast pre-policy (cherry picked from commit 5523fccf4f7d05444c36c568128e94cd7b08c34f) --- .../include/bgp/bmp-monitor-afi-policy.xml.i | 14 ++++ .../include/bgp/protocol-common-config.xml.i | 86 ++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 interface-definitions/include/bgp/bmp-monitor-afi-policy.xml.i (limited to 'interface-definitions/include/bgp') diff --git a/interface-definitions/include/bgp/bmp-monitor-afi-policy.xml.i b/interface-definitions/include/bgp/bmp-monitor-afi-policy.xml.i new file mode 100644 index 000000000..261d60232 --- /dev/null +++ b/interface-definitions/include/bgp/bmp-monitor-afi-policy.xml.i @@ -0,0 +1,14 @@ + + + + Send state before policy and filter processing + + + + + + Send state with policy and filters applied + + + + diff --git a/interface-definitions/include/bgp/protocol-common-config.xml.i b/interface-definitions/include/bgp/protocol-common-config.xml.i index c379ba95c..dce61ee77 100644 --- a/interface-definitions/include/bgp/protocol-common-config.xml.i +++ b/interface-definitions/include/bgp/protocol-common-config.xml.i @@ -909,6 +909,92 @@ + + + BGP Monitoring Protocol (BMP) + + + + + Maximum memory used for buffered mirroring messages (in bytes) + + u32:0-4294967294 + Limit in bytes + + + + + + + + + BMP target + + + #include + #include + + 5000 + + + + Minimum connection retry interval (in milliseconds) + + u32:100-86400000 + Minimum connection retry interval + + + + + + 1000 + + + + Maximum connection retry interval + + u32:100-4294967295 + Maximum connection retry interval + + + + + + 2000 + + + + Send BMP route mirroring messages + + + + + + Send BMP route monitoring messages + + + + + Address family IPv4 unicast + + + #include + + + + + Address family IPv6 unicast + + + #include + + + + + + + + Configure interface related parameters, e.g. MPLS -- cgit v1.2.3