diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-07-14 21:40:54 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-07-17 07:29:48 +0200 |
commit | 6a8080e1c0a7254ffb7046d543b9bff5618ff136 (patch) | |
tree | 35c505a025f922ef2d3e4383eaa2bbb9448ca5bc | |
parent | ed361a8254073505c1183bc884aa2bcb6ff0b76c (diff) | |
download | vyos-1x-6a8080e1c0a7254ffb7046d543b9bff5618ff136.tar.gz vyos-1x-6a8080e1c0a7254ffb7046d543b9bff5618ff136.zip |
xml: provide common "pre-shared-secret" include block
-rw-r--r-- | interface-definitions/include/ipsec/authentication-pre-shared-secret.xml.i | 11 | ||||
-rw-r--r-- | interface-definitions/vpn_ipsec.xml.in | 26 | ||||
-rw-r--r-- | interface-definitions/vpn_l2tp.xml.in | 6 |
3 files changed, 15 insertions, 28 deletions
diff --git a/interface-definitions/include/ipsec/authentication-pre-shared-secret.xml.i b/interface-definitions/include/ipsec/authentication-pre-shared-secret.xml.i new file mode 100644 index 000000000..af2669335 --- /dev/null +++ b/interface-definitions/include/ipsec/authentication-pre-shared-secret.xml.i @@ -0,0 +1,11 @@ +<!-- include start from ipsec/authentication-pre-shared-secret.xml.i --> +<leafNode name="pre-shared-secret"> + <properties> + <help>Pre-shared secret key</help> + <valueHelp> + <format>txt</format> + <description>Pre-shared secret key</description> + </valueHelp> + </properties> +</leafNode> +<!-- include end --> diff --git a/interface-definitions/vpn_ipsec.xml.in b/interface-definitions/vpn_ipsec.xml.in index af0826c63..8399cf7f4 100644 --- a/interface-definitions/vpn_ipsec.xml.in +++ b/interface-definitions/vpn_ipsec.xml.in @@ -704,15 +704,7 @@ </valueHelp> </properties> </leafNode> - <leafNode name="pre-shared-secret"> - <properties> - <help>Pre-shared secret key</help> - <valueHelp> - <format>txt</format> - <description>Pre-shared secret key</description> - </valueHelp> - </properties> - </leafNode> + #include <include/ipsec/authentication-pre-shared-secret.xml.i> </children> </node> <node name="bind"> @@ -811,11 +803,7 @@ </properties> <defaultValue>x509</defaultValue> </leafNode> - <leafNode name="pre-shared-secret"> - <properties> - <help>Pre-shared-secret used for server authentication</help> - </properties> - </leafNode> + #include <include/ipsec/authentication-pre-shared-secret.xml.i> </children> </node> #include <include/generic-description.xml.i> @@ -947,15 +935,7 @@ </constraint> </properties> </leafNode> - <leafNode name="pre-shared-secret"> - <properties> - <help>Pre-shared secret key</help> - <valueHelp> - <format>txt</format> - <description>Pre-shared secret key</description> - </valueHelp> - </properties> - </leafNode> + #include <include/ipsec/authentication-pre-shared-secret.xml.i> <leafNode name="remote-id"> <properties> <help>ID for remote authentication</help> diff --git a/interface-definitions/vpn_l2tp.xml.in b/interface-definitions/vpn_l2tp.xml.in index f3f5cadcd..6cf5218ff 100644 --- a/interface-definitions/vpn_l2tp.xml.in +++ b/interface-definitions/vpn_l2tp.xml.in @@ -70,11 +70,7 @@ </completionHelp> </properties> </leafNode> - <leafNode name="pre-shared-secret"> - <properties> - <help>Pre-shared secret for IPsec</help> - </properties> - </leafNode> + #include <include/ipsec/authentication-pre-shared-secret.xml.i> #include <include/ipsec/authentication-x509.xml.i> </children> </node> |