diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-07-19 19:25:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 19:25:48 +0200 |
commit | a2e708384f1e1136016ceb7c45494a9a3ddaeb49 (patch) | |
tree | 4ee54246820dacee33eba93504f83ae5f962025a /interface-definitions | |
parent | 02043297db68d45b2ca398486cc119d1c103e68c (diff) | |
parent | c96c3ea2ed672394b04fcae924d351565ec9dc6c (diff) | |
download | vyos-1x-a2e708384f1e1136016ceb7c45494a9a3ddaeb49.tar.gz vyos-1x-a2e708384f1e1136016ceb7c45494a9a3ddaeb49.zip |
Merge pull request #929 from sarthurdev/pki_wg
pki: wireguard: T3642: Migrate Wireguard private key directly into CLI
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/interfaces-wireguard.xml.in | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/interface-definitions/interfaces-wireguard.xml.in b/interface-definitions/interfaces-wireguard.xml.in index 378251fed..773bde09c 100644 --- a/interface-definitions/interfaces-wireguard.xml.in +++ b/interface-definitions/interfaces-wireguard.xml.in @@ -42,12 +42,12 @@ </leafNode> <leafNode name="private-key"> <properties> - <help>Private key to use on that interface</help> - <completionHelp> - <script>${vyos_op_scripts_dir}/wireguard.py --listkdir</script> - </completionHelp> + <help>Base64 encoded private key</help> + <constraint> + <regex>[0-9a-zA-Z\+/]{43}=$</regex> + </constraint> + <constraintErrorMessage>Key is not valid 44-character (32-bytes) base64</constraintErrorMessage> </properties> - <defaultValue>default</defaultValue> </leafNode> <tagNode name="peer"> <properties> @@ -59,7 +59,7 @@ </properties> <children> #include <include/generic-disable-node.xml.i> - <leafNode name="pubkey"> + <leafNode name="public-key"> <properties> <help>base64 encoded public key</help> <constraint> |