summaryrefslogtreecommitdiffhomepage
path: root/tools/pyang_plugins/gobgp.yang
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-09-13 22:39:21 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-09-13 22:39:21 +0900
commit5be31cce0de1797664d4125957d157991a6fbd4a (patch)
tree5a54a2f12184ea6d7bface519707bf878df859f9 /tools/pyang_plugins/gobgp.yang
parentc717f53456e0c1ac256377bfdd933431cc6a66bd (diff)
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 <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'tools/pyang_plugins/gobgp.yang')
-rw-r--r--tools/pyang_plugins/gobgp.yang55
1 files changed, 55 insertions, 0 deletions
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 {