summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-07-29 13:40:19 +0000
committerViacheslav <v.gletenko@vyos.io>2021-07-29 13:40:19 +0000
commitff7d249558d7b0a76762043f4c8db6f4c698d669 (patch)
tree3f8cc26512f41bd8b8b54ac9e8d1f3bdd1361d97
parentb476983ea129d219d17cfc9c89b986f814288fd8 (diff)
downloadvyatta-cfg-quagga-ff7d249558d7b0a76762043f4c8db6f4c698d669.tar.gz
vyatta-cfg-quagga-ff7d249558d7b0a76762043f4c8db6f4c698d669.zip
bgp: T1176: Add option solo for neighbor
-rwxr-xr-xscripts/bgp/vyatta-bgp.pl4
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/solo/node.def1
2 files changed, 5 insertions, 0 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl
index 3c6b7dd5..9496621e 100755
--- a/scripts/bgp/vyatta-bgp.pl
+++ b/scripts/bgp/vyatta-bgp.pl
@@ -606,6 +606,10 @@ my %qcom = (
set => 'router bgp #3 ; neighbor #5 passive',
del => 'router bgp #3 ; no neighbor #5 passive',
},
+ 'protocols bgp var neighbor var solo' => {
+ set => 'router bgp #3 ; neighbor #5 solo',
+ del => 'router bgp #3 ; no neighbor #5 solo',
+ },
'protocols bgp var neighbor var bfd' => {
set => 'router bgp #3 ; neighbor #5 bfd',
del => 'router bgp #3 ; no neighbor #5 bfd',
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/solo/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/solo/node.def
new file mode 100644
index 00000000..ebbd5597
--- /dev/null
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/solo/node.def
@@ -0,0 +1 @@
+help: Do not send back prefixes learned from the neighbor