query_cisco: Use host-specific option value

This commit is contained in:
Richard Hansen 2024-07-23 15:43:15 -04:00
parent 0392c5e725
commit 1054e162fa

View file

@ -207,7 +207,7 @@ our %builtinweb = (
sub query_cisco { sub query_cisco {
my ($h, $asa, $v4) = @_; my ($h, $asa, $v4) = @_;
warning("'--if' is deprecated for '--usev4=cisco%s; use '--ifv4' instead", $asa ? '-asa' : '') warning("'--if' is deprecated for '--usev4=cisco%s; use '--ifv4' instead", $asa ? '-asa' : '')
if ($v4 && !defined(opt('ifv4')) && defined(opt('if', $h))); if ($v4 && !defined(opt('ifv4', $h)) && defined(opt('if', $h)));
my $if = ($v4 ? opt('ifv4', $h) : undef) // opt('if', $h); my $if = ($v4 ? opt('ifv4', $h) : undef) // opt('if', $h);
my $fw = ($v4 ? opt('fwv4', $h) : undef) // opt('fw', $h); my $fw = ($v4 ? opt('fwv4', $h) : undef) // opt('fw', $h);
# Convert slashes to protected value "\/" # Convert slashes to protected value "\/"