summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/firewall.xml.in12
-rw-r--r--op-mode-definitions/restart-ntp.xml.in13
2 files changed, 19 insertions, 6 deletions
diff --git a/op-mode-definitions/firewall.xml.in b/op-mode-definitions/firewall.xml.in
index 6a254ee11..b6ce5bae2 100644
--- a/op-mode-definitions/firewall.xml.in
+++ b/op-mode-definitions/firewall.xml.in
@@ -119,7 +119,7 @@
<properties>
<help>Show summary of bridge custom firewall ruleset</help>
<completionHelp>
- <path>firewall bridge name ${COMP_WORDS[5]} rule</path>
+ <path>firewall bridge name ${COMP_WORDS[4]} rule</path>
</completionHelp>
</properties>
<children>
@@ -127,7 +127,7 @@
<properties>
<help>Show list view of bridge custom firewall rules</help>
<completionHelp>
- <path>firewall bridge name ${COMP_WORDS[5]} rule detail</path>
+ <path>firewall bridge name ${COMP_WORDS[4]} rule detail</path>
</completionHelp>
</properties>
<command>sudo ${vyos_op_scripts_dir}/firewall.py --action show --family $3 --hook $4 --priority $5 --rule $7 --detail $8</command>
@@ -299,7 +299,7 @@
<properties>
<help>Show summary of IPv6 custom firewall ruleset</help>
<completionHelp>
- <path>firewall ipv6 name ${COMP_WORDS[5]} rule</path>
+ <path>firewall ipv6 name ${COMP_WORDS[4]} rule</path>
</completionHelp>
</properties>
<children>
@@ -307,7 +307,7 @@
<properties>
<help>Show list view of IPv6 custom firewall rules</help>
<completionHelp>
- <path>firewall ipv6 name ${COMP_WORDS[5]} rule detail</path>
+ <path>firewall ipv6 name ${COMP_WORDS[4]} rule detail</path>
</completionHelp>
</properties>
<command>sudo ${vyos_op_scripts_dir}/firewall.py --action show --family $3 --hook $4 --priority $5 --rule $7 --detail $8</command>
@@ -479,7 +479,7 @@
<properties>
<help>Show summary of IPv4 custom firewall ruleset</help>
<completionHelp>
- <path>firewall ipv4 name ${COMP_WORDS[5]} rule</path>
+ <path>firewall ipv4 name ${COMP_WORDS[4]} rule</path>
</completionHelp>
</properties>
<children>
@@ -487,7 +487,7 @@
<properties>
<help>Show list view of IPv4 custom firewall ruleset</help>
<completionHelp>
- <path>firewall ipv4 name ${COMP_WORDS[5]} rule detail</path>
+ <path>firewall ipv4 name ${COMP_WORDS[4]} rule detail</path>
</completionHelp>
</properties>
<command>sudo ${vyos_op_scripts_dir}/firewall.py --action show --family $3 --hook $4 --priority $5 --rule $7 --detail $8</command>
diff --git a/op-mode-definitions/restart-ntp.xml.in b/op-mode-definitions/restart-ntp.xml.in
new file mode 100644
index 000000000..961fae252
--- /dev/null
+++ b/op-mode-definitions/restart-ntp.xml.in
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="restart">
+ <children>
+ <node name="ntp">
+ <properties>
+ <help>Restart NTP service</help>
+ </properties>
+ <command>if cli-shell-api existsActive service ntp; then sudo systemctl restart chrony.service; else echo "Service NTP not configured"; fi</command>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>