diff options
author | Kim Hagen <khagen@multi-development.com> | 2014-09-11 09:16:59 +0200 |
---|---|---|
committer | Kim Hagen <khagen@multi-development.com> | 2014-09-11 09:16:59 +0200 |
commit | 58dbd31aeccdc28ec6fdfa14331103d750bd8fe6 (patch) | |
tree | 3a3ce56fcd3ef0c04d1f35e15058e3bb7889938e /scripts/vyos-update-nhrp.pl | |
parent | 8863b7efe68429ebcf2fd43a13c592ac33139415 (diff) | |
download | vyos-nhrp-58dbd31aeccdc28ec6fdfa14331103d750bd8fe6.tar.gz vyos-nhrp-58dbd31aeccdc28ec6fdfa14331103d750bd8fe6.zip |
Replace 'defined' check for an 'exists' check
Diffstat (limited to 'scripts/vyos-update-nhrp.pl')
-rw-r--r-- | scripts/vyos-update-nhrp.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyos-update-nhrp.pl b/scripts/vyos-update-nhrp.pl index 0134c71..b4ce8bb 100644 --- a/scripts/vyos-update-nhrp.pl +++ b/scripts/vyos-update-nhrp.pl @@ -105,7 +105,7 @@ sub configure_nhrp_tunnels { if (@nhrp_tunnels) { foreach my $nhrp_tunnel(@nhrp_tunnels) { if ($nhrp_tunnel ~~ @tunnels) { - if ($config_tun->returnValue("$nhrp_tunnel encapsulation") eq "gre" && ! defined $config_tun->returnValue("$nhrp_tunnel remote-ip")) { + if ($config_tun->returnValue("$nhrp_tunnel encapsulation") eq "gre" && ! $config_tun->exists("$nhrp_tunnel remote-ip")) { my @conf_file = tunnel_config($nhrp_tunnel); open (my $fh,">>$conffile"); foreach (@conf_file) { |