summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-05-12 11:58:55 +0200
committerChristian Poessinger <christian@poessinger.com>2018-05-12 12:33:16 +0200
commit0a8021c21eb918cc2c31d7d922b6428017b341c0 (patch)
tree69b716cd6a314a33d16c91b601615f30d24d205c /interface-definitions
parente30a7a6cebce788bca90a22693ef514fd76f153b (diff)
downloadvyos-1x-0a8021c21eb918cc2c31d7d922b6428017b341c0.tar.gz
vyos-1x-0a8021c21eb918cc2c31d7d922b6428017b341c0.zip
T631: use completionHelp for SSH rather then valueHelp
SSH is already probed for some possible values. ALso use completionHelp for available ciphers. In addition drop 'perl' from helper script in favor of 'tr'.
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/ssh.xml59
1 files changed, 5 insertions, 54 deletions
diff --git a/interface-definitions/ssh.xml b/interface-definitions/ssh.xml
index 9965dd69e..5b9368360 100644
--- a/interface-definitions/ssh.xml
+++ b/interface-definitions/ssh.xml
@@ -46,58 +46,9 @@
<leafNode name="ciphers">
<properties>
<help>Allowed ciphers</help>
- <valueHelp>
- <format>chacha20-poly1305@openssh.com</format>
- <description>ChaCha20 Poly1305</description>
- </valueHelp>
- <valueHelp>
- <format>3des-cbc</format>
- <description>3DES CBC (weak)</description>
- </valueHelp>
- <valueHelp>
- <format>aes128-cbc</format>
- <description>AES 128 CBC</description>
- </valueHelp>
- <valueHelp>
- <format>aes192-cbc</format>
- <description>AES 192 CBC</description>
- </valueHelp>
- <valueHelp>
- <format>aes256-cbc</format>
- <description>AES 256 CBC</description>
- </valueHelp>
- <valueHelp>
- <format>aes128-ctr</format>
- <description>AES 128 CTR</description>
- </valueHelp>
- <valueHelp>
- <format>aes192-ctr</format>
- <description>AES 192 CTR</description>
- </valueHelp>
- <valueHelp>
- <format>aes256-ctr</format>
- <description>AES 256 CTR</description>
- </valueHelp>
- <valueHelp>
- <format>arcfour128</format>
- <description>AC4 128 (broken)</description>
- </valueHelp>
- <valueHelp>
- <format>arcfour256</format>
- <description>AC4 256 (broken)</description>
- </valueHelp>
- <valueHelp>
- <format>arcfour</format>
- <description>AC4 (broken)</description>
- </valueHelp>
- <valueHelp>
- <format>blowfish-cbc</format>
- <description>Blowfish CBC</description>
- </valueHelp>
- <valueHelp>
- <format>cast128-cbc</format>
- <description>CAST 128 CBC</description>
- </valueHelp>
+ <completionHelp>
+ <script>ssh -Q cipher | tr '\n' ' '</script>
+ </completionHelp>
</properties>
</leafNode>
<leafNode name="disable-host-validation">
@@ -114,7 +65,7 @@
<properties>
<help>Key exchange algorithms</help>
<completionHelp>
- <script>ssh -Q kex | perl -ne '$_=~s/\n/ /;print'</script>
+ <script>ssh -Q kex | tr '\n' ' '</script>
</completionHelp>
</properties>
</leafNode>
@@ -162,7 +113,7 @@
<properties>
<help>Allowed message authentication algorithms</help>
<completionHelp>
- <script>ssh -Q mac | perl -ne '$_=~s/\n/ /;print'</script>
+ <script>ssh -Q mac | tr '\n' ' '</script>
</completionHelp>
</properties>
</leafNode>