From 689403a2153d0477f9a1e39b4c0e8c6b7f03ddfb Mon Sep 17 00:00:00 2001 From: sever-sever Date: Mon, 26 Apr 2021 21:28:11 +0000 Subject: bgp: T2100: Add global param for ebgp-policy --- templates/protocols/bgp/node.def | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def index 08c0a91a..50618ac1 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 else -- cgit v1.2.3