Unverified Commit b1f52367 authored by THEPAUT's avatar THEPAUT Committed by GitHub
Browse files

(plugin) apps::monitoring::ntopng::restapi - Fix interface option not consider...

(plugin) apps::monitoring::ntopng::restapi - Fix interface option not consider if the value is quoted in the command line (#3763)
parent 96a8c06e
......@@ -120,7 +120,7 @@ sub new {
$options{options}->add_options(arguments => {
'filter-type:s' => { name => 'filter_type' },
'filter-severity:s' => { name => 'filter_severity' },
'interface:i' => { name => 'interface', default => 0 },
'interface:s' => { name => 'interface', default => 0 },
'period:s' => { name => 'period', default => 'last-5mns' }
});
......
......@@ -97,7 +97,7 @@ sub new {
bless $self, $class;
$options{options}->add_options(arguments => {
'interface:i' => { name => 'interface', default => 0 },
'interface:s' => { name => 'interface', default => 0 },
'ip:s' => { name => 'ip' }
});
......
......@@ -120,7 +120,7 @@ sub new {
bless $self, $class;
$options{options}->add_options(arguments => {
'interface:i' => { name => 'interface', default => 0 }
'interface:s' => { name => 'interface', default => 0 }
});
return $self;
......
......@@ -75,7 +75,7 @@ sub new {
bless $self, $class;
$options{options}->add_options(arguments => {
'interface:i' => { name => 'interface', default => 0 }
'interface:s' => { name => 'interface', default => 0 }
});
return $self;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment