summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-16 07:58:35 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-16 15:35:31 -0800
commitc8a3caacf30fd28f4732de91c05e51f61eb15b99 (patch)
tree0181e413b220f6ac7e453f90d6a61cdab20d2b14 /tools
parent2648b9bae2d02d268bbda01cf1b13be0d50157c3 (diff)
bmp: support post-policy routing monitoring
"RouteMonitoringPolicy" option added: 0: pre-policy (by default) 1: post-policy 2: both = [BmpServers] [[BmpServers.BmpServerList]] [BmpServers.BmpServerList.BmpServerConfig] Address = "127.0.0.1" Port = 11019 RouteMonitoringPolicy = 2 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'tools')
-rw-r--r--tools/pyang_plugins/gobgp.yang21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang
index 7168e669..1f0f7474 100644
--- a/tools/pyang_plugins/gobgp.yang
+++ b/tools/pyang_plugins/gobgp.yang
@@ -48,6 +48,23 @@ module bgp-gobgp {
}
}
+ typedef bmp-route-monitoring-policy-type {
+ type enumeration {
+ enum PRE-POLICY {
+ value 0;
+ description "send pre-policy routes";
+ }
+ enum POST-POLICY {
+ value 1;
+ description "send post-policy routes";
+ }
+ enum BOTH {
+ value 2;
+ description "send both pre and post-policy routes";
+ }
+ }
+ }
+
grouping gobgp-message-counter {
description
"Counters for all BGPMessage types";
@@ -410,6 +427,10 @@ module bgp-gobgp {
description
"Reference to the port of the BMP server";
}
+ leaf route-monitoring-policy {
+ type bmp-route-monitoring-policy-type;
+ default PRE-POLICY;
+ }
}
grouping gobgp-bmp-server-state {