From 1fd46103728f0ed421a74a5fd6b96cb74b44bb38 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Tue, 23 Jan 2018 17:00:44 +0900 Subject: 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 --- tools/pyang_plugins/gobgp.yang | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'tools') 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; } -- cgit v1.2.3