query_cisco: Use host-specific option value
This commit is contained in:
parent
0392c5e725
commit
1054e162fa
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ our %builtinweb = (
|
|||
sub query_cisco {
|
||||
my ($h, $asa, $v4) = @_;
|
||||
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 $fw = ($v4 ? opt('fwv4', $h) : undef) // opt('fw', $h);
|
||||
# Convert slashes to protected value "\/"
|
||||
|
|
Loading…
Reference in a new issue