summaryrefslogtreecommitdiff
path: root/interface-definitions/system_config-management.xml.in
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-10-07 12:15:44 -0500
committerJohn Estabrook <jestabro@vyos.io>2024-10-07 12:15:44 -0500
commit64196ec5fd90a8caedef88edb9068a32e4e6abfa (patch)
tree64458ac2666f2871272b646873140cfaba1a9efc /interface-definitions/system_config-management.xml.in
parent4d5f2a58bbf5a366c43871ef27b75d31b3b2a114 (diff)
downloadvyos-1x-64196ec5fd90a8caedef88edb9068a32e4e6abfa.tar.gz
vyos-1x-64196ec5fd90a8caedef88edb9068a32e4e6abfa.zip
config-mgmt: T5976: move commit-confirm revert action to subnode
Diffstat (limited to 'interface-definitions/system_config-management.xml.in')
-rw-r--r--interface-definitions/system_config-management.xml.in43
1 files changed, 25 insertions, 18 deletions
diff --git a/interface-definitions/system_config-management.xml.in b/interface-definitions/system_config-management.xml.in
index b8fb6cdb5..a23d44aea 100644
--- a/interface-definitions/system_config-management.xml.in
+++ b/interface-definitions/system_config-management.xml.in
@@ -67,26 +67,33 @@
<constraintErrorMessage>Number of revisions must be between 0 and 65535</constraintErrorMessage>
</properties>
</leafNode>
- <leafNode name="commit-confirm">
+ <node name="commit-confirm">
<properties>
- <help>Commit confirm rollback type if no confirmation</help>
- <completionHelp>
- <list>reload reboot</list>
- </completionHelp>
- <valueHelp>
- <format>reload</format>
- <description>Reload previous configuration if not confirmed</description>
- </valueHelp>
- <valueHelp>
- <format>reboot</format>
- <description>Reboot to saved configuration if not confirmed</description>
- </valueHelp>
- <constraint>
- <regex>(reload|reboot)</regex>
- </constraint>
+ <help>Commit confirm options</help>
</properties>
- <defaultValue>reboot</defaultValue>
- </leafNode>
+ <children>
+ <leafNode name="action">
+ <properties>
+ <help>Commit confirm revert action</help>
+ <completionHelp>
+ <list>reload reboot</list>
+ </completionHelp>
+ <valueHelp>
+ <format>reload</format>
+ <description>Reload previous configuration if not confirmed</description>
+ </valueHelp>
+ <valueHelp>
+ <format>reboot</format>
+ <description>Reboot to saved configuration if not confirmed</description>
+ </valueHelp>
+ <constraint>
+ <regex>(reload|reboot)</regex>
+ </constraint>
+ </properties>
+ <defaultValue>reboot</defaultValue>
+ </leafNode>
+ </children>
+ </node>
</children>
</node>
</children>