summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorKim Hagen <kim@sentrium.io>2021-09-03 06:00:07 -0500
committerKim Hagen <kim@sentrium.io>2021-09-03 06:00:07 -0500
commit5366f9c9ce9850cdf3fddbf0c2947994a0c7eef6 (patch)
tree458ce7a76adc282ac352a646175d9d691b839ce3 /op-mode-definitions
parentcfebb0b01c37e92503aeb88bca42fa18f6927814 (diff)
downloadvyos-1x-5366f9c9ce9850cdf3fddbf0c2947994a0c7eef6.tar.gz
vyos-1x-5366f9c9ce9850cdf3fddbf0c2947994a0c7eef6.zip
do not use capitals in opmode
rename t0 to drift add subnemu for 2fa to make it more readable
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/openvpn.xml.in39
1 files changed, 23 insertions, 16 deletions
diff --git a/op-mode-definitions/openvpn.xml.in b/op-mode-definitions/openvpn.xml.in
index 6549976c5..068d5d8fb 100644
--- a/op-mode-definitions/openvpn.xml.in
+++ b/op-mode-definitions/openvpn.xml.in
@@ -63,24 +63,31 @@
</completionHelp>
</properties>
<children>
- <leafNode name="2fa-secret">
+ <node name="2fa">
<properties>
- <help>Show 2fa authentication secret</help>
+ <help>Show 2fa information</help>
</properties>
- <command>${vyos_op_scripts_dir}/show_openvpn_2fa.py --user="$6" --intf="$4" --action=secret</command>
- </leafNode>
- <leafNode name="2fa-uri">
- <properties>
- <help>Show 2fa otpauth uri</help>
- </properties>
- <command>${vyos_op_scripts_dir}/show_openvpn_2fa.py --user="$6" --intf="$4" --action=uri</command>
- </leafNode>
- <leafNode name="2fa-QRcode">
- <properties>
- <help>Show 2fa QR code</help>
- </properties>
- <command>${vyos_op_scripts_dir}/show_openvpn_2fa.py --user="$6" --intf="$4" --action=qrcode</command>
- </leafNode>
+ <children>
+ <leafNode name="secret">
+ <properties>
+ <help>Show 2fa authentication secret</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_openvpn_2fa.py --user="$6" --intf="$4" --action=secret</command>
+ </leafNode>
+ <leafNode name="uri">
+ <properties>
+ <help>Show 2fa otpauth uri</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_openvpn_2fa.py --user="$6" --intf="$4" --action=uri</command>
+ </leafNode>
+ <leafNode name="qrcode">
+ <properties>
+ <help>Show 2fa QR code</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_openvpn_2fa.py --user="$6" --intf="$4" --action=qrcode</command>
+ </leafNode>
+ </children>
+ </node>
</children>
</tagNode>
<leafNode name="brief">