summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/force-arp.xml24
-rw-r--r--op-mode-definitions/restart.xml8
2 files changed, 32 insertions, 0 deletions
diff --git a/op-mode-definitions/force-arp.xml b/op-mode-definitions/force-arp.xml
index c7bcad413..f9f7c7643 100644
--- a/op-mode-definitions/force-arp.xml
+++ b/op-mode-definitions/force-arp.xml
@@ -72,6 +72,30 @@
</tagNode>
</children>
</node>
+ <node name="duplicate">
+ <properties>
+ <help>Send ARP for DAD detection</help>
+ </properties>
+ <children>
+ <tagNode name="interface">
+ <properties>
+ <help>Send ARP for DAD detection on specified interface</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces.py --broadcast</script>
+ </completionHelp>
+ </properties>
+ <children>
+ <tagNode name="address">
+ <properties>
+ <help>Send ARP for DAD detection for specified address</help>
+ </properties>
+ <command>sudo /usr/bin/arping -I $5 -c 1 -D $7</command>
+ </tagNode>
+ </children>
+ </tagNode>
+ </children>
+ </node>
+
</children>
</node>
</children>
diff --git a/op-mode-definitions/restart.xml b/op-mode-definitions/restart.xml
new file mode 100644
index 000000000..c74ec9013
--- /dev/null
+++ b/op-mode-definitions/restart.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interfaceDefinition>
+ <node name="restart">
+ <properties>
+ <help>Restart individual service</help>
+ </properties>
+ </node>
+</interfaceDefinition>