diff options
author | sever-sever <v.gletenko@vyos.io> | 2021-04-28 21:15:08 +0000 |
---|---|---|
committer | sever-sever <v.gletenko@vyos.io> | 2021-04-29 15:17:17 +0000 |
commit | 1587243e64a27c933dc48bd2ba0940020aad1658 (patch) | |
tree | dd9ae72c83d6841bc64d92bbc9c14a0a6c07e18a | |
parent | ec297e189213c7019e7515806f5b38effe3408b1 (diff) | |
download | vyatta-cfg-quagga-1587243e64a27c933dc48bd2ba0940020aad1658.tar.gz vyatta-cfg-quagga-1587243e64a27c933dc48bd2ba0940020aad1658.zip |
frr: T3217: Ability to save routing configs
-rw-r--r-- | templates/protocols/bgp/node.def | 1 | ||||
-rw-r--r-- | templates/protocols/ospf/node.def | 1 | ||||
-rw-r--r-- | templates/protocols/ospfv3/node.def | 1 | ||||
-rw-r--r-- | templates/protocols/ripng/node.def | 1 | ||||
-rw-r--r-- | templates/protocols/static/node.def | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def index 08c0a91a..694f5c13 100644 --- a/templates/protocols/bgp/node.def +++ b/templates/protocols/bgp/node.def @@ -10,6 +10,7 @@ syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \ end: if [ -z "$VAR(.)" ] || [ "$COMMIT_ACTION" != DELETE ]; then /opt/vyatta/sbin/vyatta-bgp.pl --main vtysh -d bgpd -c 'sh run' > /opt/vyatta/etc/quagga/bgpd.conf + sudo vtysh --writeconfig --noerror else rm -f /opt/vyatta/etc/quagga/bgpd.conf fi diff --git a/templates/protocols/ospf/node.def b/templates/protocols/ospf/node.def index 613aee78..cf33ba11 100644 --- a/templates/protocols/ospf/node.def +++ b/templates/protocols/ospf/node.def @@ -15,4 +15,5 @@ end: if [ "$COMMIT_ACTION" == DELETE ]; then rm -f /opt/vyatta/etc/quagga/ospfd.conf else vtysh -d ospfd -c 'sh run' > /opt/vyatta/etc/quagga/ospfd.conf + sudo vtysh --writeconfig --noerror fi diff --git a/templates/protocols/ospfv3/node.def b/templates/protocols/ospfv3/node.def index ffcf8dbc..4bf54837 100644 --- a/templates/protocols/ospfv3/node.def +++ b/templates/protocols/ospfv3/node.def @@ -9,6 +9,7 @@ begin: if [ "$COMMIT_ACTION" != DELETE ]; then -c "no ospf6 router-id" fi vtysh -d ospf6d -c 'sh run' > /opt/vyatta/etc/quagga/ospf6d.conf + sudo vtysh --writeconfig --noerror fi end: if [ "$COMMIT_ACTION" == DELETE ]; then vtysh -c "configure terminal" -c "router ospf6" -c "no router-id" diff --git a/templates/protocols/ripng/node.def b/templates/protocols/ripng/node.def index 6f12edce..ae4e0ebb 100644 --- a/templates/protocols/ripng/node.def +++ b/templates/protocols/ripng/node.def @@ -5,6 +5,7 @@ delete: vtysh -c "configure terminal" -c "no router ripng" end: if [ "$COMMIT_ACTION" != "DELETE" ]; then vtysh -d ripngd -c 'sh run' > /opt/vyatta/etc/quagga/ripngd.conf + sudo vtysh --writeconfig --noerror else rm -f /opt/vyatta/etc/quagga/ripngd.conf fi diff --git a/templates/protocols/static/node.def b/templates/protocols/static/node.def index 0cbd6d1b..0afb363e 100644 --- a/templates/protocols/static/node.def +++ b/templates/protocols/static/node.def @@ -3,6 +3,7 @@ help: Static route parameters end: if [ "$COMMIT_ACTION" != "DELETE" ]; then vtysh -d zebra -c 'sh run' > /opt/vyatta/etc/quagga/zebra.conf + sudo vtysh --writeconfig --noerror else rm -f /opt/vyatta/etc/quagga/zebra.conf fi |