summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2026-03-29 21:06:03 -0500
committerJohn Estabrook <jestabro@vyos.io>2026-04-15 15:17:27 -0500
commit5aeb805180e29724d909d1bae9ae3575a73622a3 (patch)
tree9584f496f9e451be2810acfcc33e7acf3da19cc4
parent31afc461b33e00cc09c9ee013923d728a8187ebe (diff)
downloadvyos-1x-5aeb805180e29724d909d1bae9ae3575a73622a3.tar.gz
vyos-1x-5aeb805180e29724d909d1bae9ae3575a73622a3.zip
T8445: add op-mode definitions
-rw-r--r--op-mode-definitions/system-activation.xml.in61
1 files changed, 61 insertions, 0 deletions
diff --git a/op-mode-definitions/system-activation.xml.in b/op-mode-definitions/system-activation.xml.in
new file mode 100644
index 000000000..7a6ee17f6
--- /dev/null
+++ b/op-mode-definitions/system-activation.xml.in
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interfaceDefinition>
+ <node name="set">
+ <properties>
+ <help>Set parameters and behaviors</help>
+ </properties>
+ <children>
+ <node name="system">
+ <properties>
+ <help>Set system operational parameters</help>
+ </properties>
+ <children>
+ <node name="activation">
+ <properties>
+ <help>Activation units at boot</help>
+ </properties>
+ <children>
+ <tagNode name="unit">
+ <properties>
+ <help>Unit name</help>
+ <completionHelp>
+ <script>${vyos_op_scripts_dir}/activation.py show_list</script>
+ </completionHelp>
+ </properties>
+ <children>
+ <tagNode name="active">
+ <properties>
+ <help>Execute on reboot</help>
+ <completionHelp>
+ <script>${vyos_op_scripts_dir}/activation.py show_opts</script>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/activation.py set_active --name "${5}" --value "${7}"</command>
+ </tagNode>
+ </children>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="show">
+ <children>
+ <node name="system">
+ <properties>
+ <help>Show system information</help>
+ </properties>
+ <children>
+ <node name="activation">
+ <properties>
+ <help>Activation scripts at boot</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/activation.py show</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>
+