summaryrefslogtreecommitdiff
path: root/interface-definitions/include/pki/cli-certificate-base64.xml.i
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-02-10 19:07:49 +0000
committerGitHub <noreply@github.com>2024-02-10 19:07:49 +0000
commit3b383b52888ab03674dded022168699c292059ca (patch)
tree27fde0bc8c75adc5ff37dd2169d553687857ee3f /interface-definitions/include/pki/cli-certificate-base64.xml.i
parent791c07e804a1a7e1c48e1a2f491c10148137bc20 (diff)
parentec049d192ddb1d2173d54b429213694ba0e6f15f (diff)
downloadvyos-1x-3b383b52888ab03674dded022168699c292059ca.tar.gz
vyos-1x-3b383b52888ab03674dded022168699c292059ca.zip
Merge pull request #2984 from vyos/mergify/bp/sagitta/pr-2982
xml: T5738: improve PKI building blocks for CLI (backport #2982)
Diffstat (limited to 'interface-definitions/include/pki/cli-certificate-base64.xml.i')
-rw-r--r--interface-definitions/include/pki/cli-certificate-base64.xml.i11
1 files changed, 11 insertions, 0 deletions
diff --git a/interface-definitions/include/pki/cli-certificate-base64.xml.i b/interface-definitions/include/pki/cli-certificate-base64.xml.i
new file mode 100644
index 000000000..a3eff79e8
--- /dev/null
+++ b/interface-definitions/include/pki/cli-certificate-base64.xml.i
@@ -0,0 +1,11 @@
+<!-- include start from pki/cli-certificate-base64.xml.i -->
+<leafNode name="certificate">
+ <properties>
+ <help>Certificate in PEM format</help>
+ <constraint>
+ <validator name="base64"/>
+ </constraint>
+ <constraintErrorMessage>Certificate is not base64-encoded</constraintErrorMessage>
+ </properties>
+</leafNode>
+<!-- include end -->