]> git.ipfire.org Git - people/ms/network.git/commitdiff
security-policies: Show descriptions for group types
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Jul 2017 19:54:24 +0000 (21:54 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Jul 2017 19:54:24 +0000 (21:54 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.vpn-security-policies

index 916716227a90d7fabc9dcdc877aded059fa79a9e..4d1b9c7af8d5ade46df122c14bf3d7890d58b7a8 100644 (file)
@@ -284,7 +284,10 @@ vpn_security_policies_show() {
        cli_space
 
        cli_print_fmt1 1 "Group Types:"
        cli_space
 
        cli_print_fmt1 1 "Group Types:"
-       cli_print_fmt1 2 "${GROUP_TYPE}"
+       local group_type
+       for group_type in ${GROUP_TYPE}; do
+               cli_print_fmt1 2 "${VPN_SUPPORTED_GROUP_TYPES[${group_type}]-${group_type}}"
+       done
        cli_space
 
        cli_print_fmt1 1 "Key Exchange:" "${KEY_EXCHANGE}"
        cli_space
 
        cli_print_fmt1 1 "Key Exchange:" "${KEY_EXCHANGE}"