summaryrefslogtreecommitdiff
path: root/op-mode-definitions/restart-frr.xml
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2019-12-31 00:04:50 +0200
committerzsdc <taras@vyos.io>2019-12-31 00:04:50 +0200
commit452a9651f215205b34268c723beec5b2f964ad09 (patch)
treebe598eceff3340e0ae8fade0736969e2dd400ba3 /op-mode-definitions/restart-frr.xml
parent7fcbd30b3357a047c57db39d0b07ed797f1392df (diff)
downloadvyos-1x-452a9651f215205b34268c723beec5b2f964ad09.tar.gz
vyos-1x-452a9651f215205b34268c723beec5b2f964ad09.zip
FRRouting: T1514: Extended FRR restarting functionality and fixed some bugs
This change addressed to fix bug with empty configuration after FRR restarting in some cases and protect from some other potential problems. * added warning and request for confirmation before doing any actions * added a couple of safety checks (already running restart, active watchfrr.sh or vtysh session) * now Python script running via sudo to give us the ability to get processes information and work with all directories and vtysh * moved configuration restoring functionality from frrcommon.sh to Python script, as frrcommon.sh implementation in some cases not load configuration in time, which leads to empty config after * the `/etc/frr/frr.conf` is not used anymore. Instead, we are saving active configuration to the temporary directory
Diffstat (limited to 'op-mode-definitions/restart-frr.xml')
-rw-r--r--op-mode-definitions/restart-frr.xml18
1 files changed, 9 insertions, 9 deletions
diff --git a/op-mode-definitions/restart-frr.xml b/op-mode-definitions/restart-frr.xml
index 4b649febd..96ad1a650 100644
--- a/op-mode-definitions/restart-frr.xml
+++ b/op-mode-definitions/restart-frr.xml
@@ -6,55 +6,55 @@
<properties>
<help>Restart FRRouting daemons</help>
</properties>
- <command>${vyos_op_scripts_dir}/restart_frr.py --action restart</command>
+ <command>sudo ${vyos_op_scripts_dir}/restart_frr.py --action restart</command>
<children>
<leafNode name="bfdd">
<properties>
<help>Restart Bidirectional Forwarding Detection daemon</help>
</properties>
- <command>${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon bfdd</command>
+ <command>sudo ${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon bfdd</command>
</leafNode>
<leafNode name="bgpd">
<properties>
<help>Restart Border Gateway Protocol daemon</help>
</properties>
- <command>${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon bgpd</command>
+ <command>sudo ${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon bgpd</command>
</leafNode>
<leafNode name="ospfd">
<properties>
<help>Restart OSPFv2 daemon</help>
</properties>
- <command>${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon ospfd</command>
+ <command>sudo ${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon ospfd</command>
</leafNode>
<leafNode name="ospf6d">
<properties>
<help>Restart OSPFv3 daemon</help>
</properties>
- <command>${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon ospf6d</command>
+ <command>sudo ${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon ospf6d</command>
</leafNode>
<leafNode name="ripd">
<properties>
<help>Restart Routing Information Protocol daemon</help>
</properties>
- <command>${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon ripd</command>
+ <command>sudo ${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon ripd</command>
</leafNode>
<leafNode name="ripngd">
<properties>
<help>Restart RIPng daemon</help>
</properties>
- <command>${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon ripngd</command>
+ <command>sudo ${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon ripngd</command>
</leafNode>
<leafNode name="staticd">
<properties>
<help>Restart Static Route daemon</help>
</properties>
- <command>${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon staticd</command>
+ <command>sudo ${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon staticd</command>
</leafNode>
<leafNode name="zebra">
<properties>
<help>Restart IP routing manager daemon</help>
</properties>
- <command>${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon zebra</command>
+ <command>sudo ${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon zebra</command>
</leafNode>
</children>
</node>