#!/home/product/code/webui-perl/bin/perl -T -I /home/product/code/firmware/current/lib/perl5
#SUDOER_USERS: nobody
#SUDOER_RUNAS_USERS: root, mta
#SUDOER_TAGS: NOPASSWD, EXEC
use strict;
use warnings;
use Barracuda::Sudo::Lib;
use Barracuda::Environment;

=pod

=head1 NAME

ip_reconf - run the IP reconf script

=cut

my @args = get_argv(sub {
    my $val = shift;
    if (!defined($val)) {
        return 1;
    }
    return is_interface()->($val);
                    });

system_succeed("$Barracuda::Environment::path_firmware/bin/ip_reconf",
               @args);
