summaryrefslogtreecommitdiffhomepage
path: root/tools/pyang_plugins/gobgp.yang
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2018-01-23 17:00:44 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2018-02-08 15:33:34 +0900
commit1fd46103728f0ed421a74a5fd6b96cb74b44bb38 (patch)
treed57428c3e439cfa63c6f6b60153b40c0913e29d5 /tools/pyang_plugins/gobgp.yang
parent5322e63522e9320bc460f5a68538d24d11c5a0ef (diff)
config: Option to disable best path selection
Note: When this option is specified, no path will be redistributed to any peer, because there is no best path. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'tools/pyang_plugins/gobgp.yang')
-rw-r--r--tools/pyang_plugins/gobgp.yang18
1 files changed, 17 insertions, 1 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang
index c6cc3bdd..9022d680 100644
--- a/tools/pyang_plugins/gobgp.yang
+++ b/tools/pyang_plugins/gobgp.yang
@@ -1217,6 +1217,22 @@ module gobgp {
uses dynamic-neighbors;
}
+ grouping disable-best-path-selection-config {
+ leaf disable-best-path-selection {
+ type boolean;
+ description
+ "Disables best path selection process.";
+ }
+ }
+
+ augment "/bgp:bgp/bgp:global/bgp:route-selection-options/bgp:config" {
+ uses disable-best-path-selection-config;
+ }
+
+ augment "/bgp:bgp/bgp:global/bgp:route-selection-options/bgp:state" {
+ uses disable-best-path-selection-config;
+ }
+
augment "/bgp:bgp/bgp:global/bgp:afi-safis/bgp:afi-safi" {
uses bgp-mp:all-afi-safi-common;
}
@@ -1248,7 +1264,7 @@ module gobgp {
uses route-target-membership-config;
}
}
-
+
uses long-lived-graceful-restart;
}