]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/bash-completion/network
ipsec: security polices: Make cipher command plural
[people/ms/network.git] / src / bash-completion / network
index 15bb9e8addf4f6b7342c413d5d9076b89a4b38d8..33bf456e56f45a5009e7b9d1c840b9faa0930e30 100644 (file)
@@ -413,7 +413,7 @@ _network_vpn_ipsec_connection_subcommands() {
        shift
        local words=( $@ )
 
-       local commands="authentication down inactivity-timeout local mode peer remote security-policy show up"
+       local commands="authentication color description down inactivity-timeout local mode peer remote security-policy show up"
        local cmd="$(_network_find_on_cmdline "${commands}")"
        if [[ -z "${cmd}" ]]; then
                COMPREPLY=( $(compgen -W "${commands}" -- "${cur}") )
@@ -426,6 +426,12 @@ _network_vpn_ipsec_connection_subcommands() {
                authentication)
                        _network_vpn_ipsec_connection_subcommands_authentication ${connection} ${args}
                        ;;
+               color)
+                       _network_color ${args}
+                       ;;
+               description)
+                       _network_description ${args}
+                       ;;
                local)
                        _network_vpn_ipsec_connection_subcommands_local_remote ${connection} "local" ${args}
                        ;;
@@ -555,7 +561,7 @@ _network_vpn_security_policies_subcommands() {
        shift
        local words=( $@ )
 
-       local commands="cipher compression group-type integrity key-exchange lifetime pfs show"
+       local commands="ciphers compression group-type integrity key-exchange lifetime pfs pseudo-random-functions show"
        local cmd="$(_network_find_on_cmdline "${commands}")"
        if [[ -z "${cmd}" ]]; then
                COMPREPLY=( $(compgen -W "${commands}" -- "${cur}") )
@@ -565,8 +571,8 @@ _network_vpn_security_policies_subcommands() {
 
        local args="${words[@]:1}"
        case "${cmd}" in
-               cipher)
-                       _network_vpn_security_policies_subcommands_cipher ${policy} ${args}
+               ciphers)
+                       _network_vpn_security_policies_subcommands_ciphers ${policy} ${args}
                        ;;
                compression)
                        _network_vpn_security_policies_subcommands_compression ${policy} ${args}
@@ -577,6 +583,9 @@ _network_vpn_security_policies_subcommands() {
                integrity)
                        _network_vpn_security_policies_subcommands_integrity ${policy} ${args}
                        ;;
+               pseudo-random-functions)
+                       _network_vpn_security_policies_subcommands_pseudo_random_functions "${policy}" "${args}"
+                       ;;
                key-exchange)
                        _network_vpn_security_policies_subcommands_key_exchange ${policy} ${args}
                        ;;
@@ -586,7 +595,7 @@ _network_vpn_security_policies_subcommands() {
                esac
 }
 
-_network_vpn_security_policies_subcommands_cipher() {
+_network_vpn_security_policies_subcommands_ciphers() {
        :
 }
 
@@ -602,6 +611,10 @@ _network_vpn_security_policies_subcommands_integrity() {
        :
 }
 
+_network_vpn_security_policies_subcommands_pseudo_random_functions() {
+       :
+}
+
 _network_vpn_security_policies_subcommands_key_exchange() {
        :
 }