Remove unimplemented --usev* strategies from --help usage

The `ciscov4`, `ciscov6`, `cisco-asav4`, and `cisco-asav6` strategies
were never implemented, and it doesn't make sense to implement them
because the `v4` and `v6` variants don't follow the pattern
established by the `%builtinfw` strategies.

The `%builtinfw` strategies were never implemented for `--usev6`.
This commit is contained in:
Richard Hansen 2024-03-15 13:18:58 -07:00
parent 640a6f08d7
commit dac72a344c

View file

@ -375,8 +375,6 @@ my %ipv4_strategies = (
'ifv4' => ": obtain IPv4 from the -ifv4 {interface}", 'ifv4' => ": obtain IPv4 from the -ifv4 {interface}",
'cmdv4' => ": obtain IPv4 from the -cmdv4 {external-command}", 'cmdv4' => ": obtain IPv4 from the -cmdv4 {external-command}",
'fwv4' => ": obtain IPv4 from the firewall specified by -fwv4 {type|address}", 'fwv4' => ": obtain IPv4 from the firewall specified by -fwv4 {type|address}",
'ciscov4' => ": obtain IPv4 from Cisco FW at the -fwv4 {address}",
'cisco-asav4' => ": obtain IPv4 from Cisco ASA at the -fwv4 {address}",
map { $_ => sprintf ": obtain IPv4 from %s at the -fwv4 {address}", $builtinfw{$_}->{'name'} } keys %builtinfw, map { $_ => sprintf ": obtain IPv4 from %s at the -fwv4 {address}", $builtinfw{$_}->{'name'} } keys %builtinfw,
); );
sub ipv4_strategies_usage { sub ipv4_strategies_usage {
@ -395,9 +393,6 @@ my %ipv6_strategies = (
'cmd' => ": deprecated, use 'cmdv6'", 'cmd' => ": deprecated, use 'cmdv6'",
'cmdv6' => ": obtain IPv6 from the -cmdv6 {external-command}", 'cmdv6' => ": obtain IPv6 from the -cmdv6 {external-command}",
'fwv6' => ": obtain IPv6 from the firewall specified by -fwv6 {type|address}", 'fwv6' => ": obtain IPv6 from the firewall specified by -fwv6 {type|address}",
'ciscov6' => ": obtain IPv6 from Cisco FW at the -fwv6 {address}",
'cisco-asav6' => ": obtain IPv6 from Cisco ASA at the -fwv6 {address}",
map { $_ => sprintf ": obtain IPv6 from %s at the -fwv6 {address}", $builtinfw{$_}->{'name'} } keys %builtinfw,
); );
sub ipv6_strategies_usage { sub ipv6_strategies_usage {
return map { sprintf(" -usev6=%-22s %s.", $_, $ipv6_strategies{$_}) } sort keys %ipv6_strategies; return map { sprintf(" -usev6=%-22s %s.", $_, $ipv6_strategies{$_}) } sort keys %ipv6_strategies;