rajuskark has asked for the wisdom of the Perl Monks concerning the following question:
calling cfgPathGetChildNodes() without config session at /opt/vyatta/share/perl5/Vyatta/Config.pmuse lib '/opt/vyatta/share/perl5'; use lib '/opt/vyatta/sbin/'; use lib '/opt/vyatta/config/'; use Data::Dumper; use Vyatta::Config; $ENV{PATH} = "$ENV{PATH}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr +/bin:/sbin:/bin"; $ENV{RUN}="/opt/vyatta/bin/vyatta-op-cmd-wrapper"; my $path = $ENV{'PATH'}; $config = new Vyatta::Config; $config->setLevel("interfaces ethernet eth0"); $config->inSession(); my @c = $config->listNodes(); foreach my $i ( @c ){ print $i,"\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Vyos with perl
by GotToBTru (Prior) on Oct 05, 2016 at 14:37 UTC | |
by rajuskark (Acolyte) on Oct 07, 2016 at 06:32 UTC | |
by rajuskark (Acolyte) on Oct 20, 2016 at 06:04 UTC | |
by marto (Cardinal) on Oct 20, 2016 at 06:58 UTC | |
|
Re: Vyos with perl
by stevieb (Canon) on Oct 05, 2016 at 13:17 UTC | |
by rajuskark (Acolyte) on Oct 05, 2016 at 13:26 UTC | |
|
Re: Vyos with perl
by rajuskark (Acolyte) on Oct 05, 2016 at 13:09 UTC |