summaryrefslogtreecommitdiff
path: root/interface-definitions/include/certificate.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-29 10:52:24 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-29 10:55:39 +0100
commitda23f084863d6bde2bb50fcc175129610fe2a603 (patch)
tree87f3726572b14e889c944fba1b020be8e3743b92 /interface-definitions/include/certificate.xml.i
parent8568da747d7103b8adea9b925b74101ea818e328 (diff)
downloadvyos-1x-da23f084863d6bde2bb50fcc175129610fe2a603.tar.gz
vyos-1x-da23f084863d6bde2bb50fcc175129610fe2a603.zip
xml: T1466: provide common includes for SSL certificate CLI nodes
Gather all SSL certificate, ca and key nodes into a single representation of XML which can be #included into the XML definitions of the CLI interface to be rendered.
Diffstat (limited to 'interface-definitions/include/certificate.xml.i')
-rw-r--r--interface-definitions/include/certificate.xml.i14
1 files changed, 14 insertions, 0 deletions
diff --git a/interface-definitions/include/certificate.xml.i b/interface-definitions/include/certificate.xml.i
new file mode 100644
index 000000000..73ae2dace
--- /dev/null
+++ b/interface-definitions/include/certificate.xml.i
@@ -0,0 +1,14 @@
+<!-- included start from certificate.xml.i -->
+<leafNode name="cert-file">
+ <properties>
+ <help>Certificate public key in x509 PEM format</help>
+ <valueHelp>
+ <format>file</format>
+ <description>File in /config/auth directory</description>
+ </valueHelp>
+ <constraint>
+ <validator name="file-exists" argument="--directory /config/auth"/>
+ </constraint>
+ </properties>
+</leafNode>
+<!-- included end -->