From 5be31cce0de1797664d4125957d157991a6fbd4a Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sun, 13 Sep 2015 22:39:21 +0900 Subject: Add bmp support Can be enabled like: [Global] [Global.GlobalConfig] As = 64512 RouterId = "10.0.255.254" [BmpServers] [[BmpServers.BmpServerList]] [BmpServers.BmpServerList.BmpServerConfig] Address = "127.0.0.1" Port=11019 Signed-off-by: FUJITA Tomonori --- tools/pyang_plugins/gobgp.yang | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'tools') diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang index ad8f24b8..07daafa1 100644 --- a/tools/pyang_plugins/gobgp.yang +++ b/tools/pyang_plugins/gobgp.yang @@ -395,6 +395,56 @@ module bgp-gobgp { } } + grouping gobgp-bmp-server-config { + description "additional BMP config"; + + leaf address { + type inet:ip-address; + description + "Reference to the address of the BMP server used as + a key in the BMP server list"; + } + leaf port { + type uint32; + description + "Reference to the port of the BMP server"; + } + } + + grouping gobgp-bmp-server-state { + description "additional BMP state"; + } + + grouping gobgp-bmp-server-set { + description "additional BMP configuration and state"; + + container config { + description + "Configuration parameters relating to BMP server"; + uses gobgp-bmp-server-config; + } + + container state { + description + "Configuration parameters relating to BMP server"; + uses gobgp-bmp-server-state; + } + } + + grouping gobgp-bmp-servers { + description "BGP Monitoring Protocol servers"; + + container bmp-servers { + description + "List of BMP servers configured on the local system"; + list bmp-server { + container bmp-server { + uses gobgp-bmp-server-set; + } + } + } + } + // augment statements augment "/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:state/bgp:messages/bgp:sent" { description "additional counters"; @@ -556,6 +606,11 @@ module bgp-gobgp { uses gobgp-rpki-servers; } + augment "/bgp:bgp" { + description "additional bmp configuration"; + uses gobgp-bmp-servers; + } + augment "/bgp:bgp/bgp:global" { description "additional mrt configuration"; container mrt { -- cgit v1.2.3