diff options
author | John Estabrook <jestabro@vyos.io> | 2023-01-20 15:29:30 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 15:29:30 -0600 |
commit | 9b99f22df3f00715108b462bb66c8f4c9c502528 (patch) | |
tree | be0bcc352fc9e3a4db7fbe0df1d5e29b7958e453 /interface-definitions/system-config-mgmt.xml.in | |
parent | bf38bb14f0698b030fa49429ec70ab2edc51c85e (diff) | |
parent | 30f572af43bb645c91cda8edd648f039a56b1a8f (diff) | |
download | vyos-1x-9b99f22df3f00715108b462bb66c8f4c9c502528.tar.gz vyos-1x-9b99f22df3f00715108b462bb66c8f4c9c502528.zip |
Merge pull request #1767 from jestabro/config-mgmt
config-mgmt: T4942: rewrite vyatta-config-mgmt to Python/XML
Diffstat (limited to 'interface-definitions/system-config-mgmt.xml.in')
-rw-r--r-- | interface-definitions/system-config-mgmt.xml.in | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/interface-definitions/system-config-mgmt.xml.in b/interface-definitions/system-config-mgmt.xml.in new file mode 100644 index 000000000..91caed01a --- /dev/null +++ b/interface-definitions/system-config-mgmt.xml.in @@ -0,0 +1,57 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="system"> + <children> + <node name="config-management" owner="${vyos_conf_scripts_dir}/config_mgmt.py"> + <properties> + <help>Configuration management settings</help> + </properties> + <children> + <node name="commit-archive"> + <properties> + <help>Commit archive settings</help> + </properties> + <children> + <leafNode name="location"> + <properties> + <help>Commit archive location</help> + <valueHelp> + <format>uri</format> + <description>Uniform Resource Identifier</description> + </valueHelp> + <constraint> + <validator name="url --file-transport"/> + </constraint> + <multi/> + </properties> + </leafNode> + <leafNode name="source-address"> + <properties> + <help>Source address or interface for archive server connections</help> + <constraint> + <validator name="ipv4-address"/> + <validator name="ipv6-address"/> + #include <include/constraint/interface-name.xml.in> + </constraint> + </properties> + </leafNode> + </children> + </node> + <leafNode name="commit-revisions"> + <properties> + <help>Commit revisions</help> + <valueHelp> + <format>u32:1-65535</format> + <description>Number of config backups to keep</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 1-65535"/> + </constraint> + <constraintErrorMessage>Number of revisions must be between 0 and 65535</constraintErrorMessage> + </properties> + </leafNode> + </children> + </node> + </children> + </node> +</interfaceDefinition> |