diff options
author | sever-sever <v.gletenko@vyos.io> | 2021-04-26 21:28:11 +0000 |
---|---|---|
committer | sever-sever <v.gletenko@vyos.io> | 2021-04-26 21:28:11 +0000 |
commit | 689403a2153d0477f9a1e39b4c0e8c6b7f03ddfb (patch) | |
tree | 6535d14cf091a7f3de21ec3311c6554571359a21 | |
parent | ec297e189213c7019e7515806f5b38effe3408b1 (diff) | |
download | vyatta-cfg-quagga-689403a2153d0477f9a1e39b4c0e8c6b7f03ddfb.tar.gz vyatta-cfg-quagga-689403a2153d0477f9a1e39b4c0e8c6b7f03ddfb.zip |
bgp: T2100: Add global param for ebgp-policy
-rw-r--r-- | templates/protocols/bgp/node.def | 6 |
1 files changed, 6 insertions, 0 deletions
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 |