summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
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 {