diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-08-14 23:15:59 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-14 23:15:59 +0700 |
commit | 04cdcfab6775d83e6f80a5b4f45bffc8a6c4dc17 (patch) | |
tree | 6f0c2b069de8c54dbc98801f5464099b7e062006 /op-mode-definitions/wireguard-keys.xml | |
parent | d822de344c8425b793e0595ba1d0a70c033d2cc3 (diff) | |
parent | 32ff96a64d351e9f72bc876f535f4898d9a08382 (diff) | |
download | vyos-1x-04cdcfab6775d83e6f80a5b4f45bffc8a6c4dc17.tar.gz vyos-1x-04cdcfab6775d83e6f80a5b4f45bffc8a6c4dc17.zip |
Merge pull request #27 from hagbard-01/current
T427, T773 adding wirguard support
Diffstat (limited to 'op-mode-definitions/wireguard-keys.xml')
-rw-r--r-- | op-mode-definitions/wireguard-keys.xml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/op-mode-definitions/wireguard-keys.xml b/op-mode-definitions/wireguard-keys.xml new file mode 100644 index 000000000..29fce33b6 --- /dev/null +++ b/op-mode-definitions/wireguard-keys.xml @@ -0,0 +1,42 @@ +<?xml version="1.0"?> +<!-- wireguard key management --> +<interfaceDefinition> + <node name="generate"> + <children> + <node name="wireguard"> + <properties> + <help>wireguard key generation utility</help> + </properties> + <children> + <leafNode name="keypair"> + <properties> + <help>generate a wireguard keypair</help> + </properties> + <command>${vyos_op_scripts_dir}/wireguard_key.py --genkey</command> + </leafNode> + </children> + </node> + </children> + </node> + <node name="show"> + <children> + <node name="wireguard"> + <children> + <leafNode name="pubkey"> + <properties> + <help>show wireguard public key</help> + </properties> + <command>${vyos_op_scripts_dir}/wireguard_key.py --showpub</command> + </leafNode> + <leafNode name="privkey"> + <properties> + <help>show wireguard private key</help> + </properties> + <command>${vyos_op_scripts_dir}/wireguard_key.py --showpriv</command> + </leafNode> + </children> + </node> + </children> + </node> +</interfaceDefinition> + |