summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-02 14:10:51 +0200
committerGitHub <noreply@github.com>2021-05-02 14:10:51 +0200
commitd84b14447aae2e1b0b6417946a4d3061f79e4d53 (patch)
treedf26b2a140fd09870790bef2a94f82971a3d6cf1
parentbc6377dfa3c59436ee319076d43e289512dfa7d8 (diff)
parent689403a2153d0477f9a1e39b4c0e8c6b7f03ddfb (diff)
downloadvyatta-cfg-quagga-d84b14447aae2e1b0b6417946a4d3061f79e4d53.tar.gz
vyatta-cfg-quagga-d84b14447aae2e1b0b6417946a4d3061f79e4d53.zip
Merge pull request #74 from sever-sever/T2100-ebgp
bgp: T2100: Add global param for ebgp-policy
-rw-r--r--templates/protocols/bgp/node.def6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def
index 694f5c13..ca7a448b 100644
--- a/templates/protocols/bgp/node.def
+++ b/templates/protocols/bgp/node.def
@@ -8,6 +8,12 @@ syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \
"AS number must be between 1 and 4294967294"
end: if [ -z "$VAR(.)" ] || [ "$COMMIT_ACTION" != DELETE ]; then
+ vtysh -d bgpd -c 'conf t' -c 'router bgp $VAR(@)' -c 'no bgp ebgp-requires-policy'
+
+ if [ -z $VAR(./parameters/network-import-check/) ]; then
+ vtysh -d bgpd -c 'conf t' -c 'router bgp $VAR(@)' -c 'no bgp network import-check'
+ fi
+
/opt/vyatta/sbin/vyatta-bgp.pl --main
vtysh -d bgpd -c 'sh run' > /opt/vyatta/etc/quagga/bgpd.conf
sudo vtysh --writeconfig --noerror