diff options
author | Stig Thormodsrud <stig@io.vyatta.com> | 2009-03-02 15:34:30 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@io.vyatta.com> | 2009-03-02 15:34:30 -0800 |
commit | 257863517fdcb6e29aefa1ac17fbaa7d37bd1725 (patch) | |
tree | 4c5fb2b1a4bdb29c73c335756f5ede7ce6692cfd /lib | |
parent | 863b6c71f0cc802809db61843dff99af0efd0999 (diff) | |
download | vyatta-cfg-257863517fdcb6e29aefa1ac17fbaa7d37bd1725.tar.gz vyatta-cfg-257863517fdcb6e29aefa1ac17fbaa7d37bd1725.zip |
When an IP address is configured on a loopback, getInterfacesIPadresses('all') doesn't include them. Include loopback addresses.
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Vyatta/Misc.pm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm index 57c2ac2..0c00b7e 100755 --- a/lib/Vyatta/Misc.pm +++ b/lib/Vyatta/Misc.pm @@ -148,7 +148,6 @@ sub getInterfacesIPadresses { foreach my $name (getInterfaces()) { my $intf = new Vyatta::Interface($name); next unless $intf; - next if $intf->loopback(); if (defined $type_func) { next unless $intf->$type_func(); } |