summaryrefslogtreecommitdiff
path: root/interface-definitions/vpn_sstp.xml.in
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/vpn_sstp.xml.in
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/vpn_sstp.xml.in')
-rw-r--r--interface-definitions/vpn_sstp.xml.in38
1 files changed, 3 insertions, 35 deletions
diff --git a/interface-definitions/vpn_sstp.xml.in b/interface-definitions/vpn_sstp.xml.in
index 77b1c1ec1..134858608 100644
--- a/interface-definitions/vpn_sstp.xml.in
+++ b/interface-definitions/vpn_sstp.xml.in
@@ -52,41 +52,9 @@
<help>SSL Certificate, SSL Key and CA (/config/user-data/sstp)</help>
</properties>
<children>
- <leafNode name="ca-cert-file">
- <properties>
- <help>Certificate Authority certificate</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>
- <leafNode name="cert-file">
- <properties>
- <help>Server Certificate</help>
- <completionHelp>
- <script>ls /config</script>
- </completionHelp>
- <constraint>
- <validator name="file-exists" argument="--directory /config/auth"/>
- </constraint>
- </properties>
- </leafNode>
- <leafNode name="key-file">
- <properties>
- <help>Privat Key of the Server Certificate</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>
+ #include <include/certificate.xml.i>
+ #include <include/certificate-ca.xml.i>
+ #include <include/certificate-key.xml.i>
</children>
</node>
</children>