diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-05-01 16:10:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-01 16:10:29 +0200 |
commit | bc6377dfa3c59436ee319076d43e289512dfa7d8 (patch) | |
tree | dd9ae72c83d6841bc64d92bbc9c14a0a6c07e18a | |
parent | ec297e189213c7019e7515806f5b38effe3408b1 (diff) | |
parent | 1587243e64a27c933dc48bd2ba0940020aad1658 (diff) | |
download | vyatta-cfg-quagga-bc6377dfa3c59436ee319076d43e289512dfa7d8.tar.gz vyatta-cfg-quagga-bc6377dfa3c59436ee319076d43e289512dfa7d8.zip |
Merge pull request #75 from sever-sever/T3217-eq
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 |