summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-04-02 16:23:14 -0500
committerGitHub <noreply@github.com>2020-04-02 16:23:14 -0500
commit626732ffea9e891406876028ed5880cb0308cb3d (patch)
tree1d0d73251edf37e82f69a330347a41278876588f
parentbdad1527f4f611e2eb6125fdc4f142545e70be36 (diff)
parentf64e496f5a77d8bdc4127f40557d8da2d640efe3 (diff)
downloadvyatta-cfg-quagga-626732ffea9e891406876028ed5880cb0308cb3d.tar.gz
vyatta-cfg-quagga-626732ffea9e891406876028ed5880cb0308cb3d.zip
Merge pull request #44 from sever-sever/network-import-check
bgp: T2100:Bgp route advertisement with rib checks Add option network-import-check for bgp. Enable IGP route check for network statements.
-rwxr-xr-xscripts/bgp/vyatta-bgp.pl6
-rw-r--r--templates/protocols/bgp/node.tag/parameters/disable-network-import-check/node.def1
-rw-r--r--templates/protocols/bgp/node.tag/parameters/network-import-check/node.def1
3 files changed, 4 insertions, 4 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl
index 359eb972..7126716c 100755
--- a/scripts/bgp/vyatta-bgp.pl
+++ b/scripts/bgp/vyatta-bgp.pl
@@ -720,9 +720,9 @@ my %qcom = (
set => 'router bgp #3 ; bgp deterministic-med',
del => 'router bgp #3 ; no bgp deterministic-med',
},
- 'protocols bgp var parameters disable-network-import-check' => {
- set => 'router bgp #3 ; no bgp network import-check',
- del => 'router bgp #3 ; bgp network import-check',
+ 'protocols bgp var parameters network-import-check' => {
+ set => 'router bgp #3 ; bgp network import-check',
+ del => 'router bgp #3 ; no bgp network import-check',
},
'protocols bgp var parameters distance' => {
set => undef,
diff --git a/templates/protocols/bgp/node.tag/parameters/disable-network-import-check/node.def b/templates/protocols/bgp/node.tag/parameters/disable-network-import-check/node.def
deleted file mode 100644
index 30004e64..00000000
--- a/templates/protocols/bgp/node.tag/parameters/disable-network-import-check/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Disable IGP route check for network statements
diff --git a/templates/protocols/bgp/node.tag/parameters/network-import-check/node.def b/templates/protocols/bgp/node.tag/parameters/network-import-check/node.def
new file mode 100644
index 00000000..29e5e916
--- /dev/null
+++ b/templates/protocols/bgp/node.tag/parameters/network-import-check/node.def
@@ -0,0 +1 @@
+help: Enable IGP route check for network statements