diff options
author | Stig Thormodsrud <stig@io.vyatta.com> | 2009-03-02 15:52:04 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@io.vyatta.com> | 2009-03-02 15:52:04 -0800 |
commit | 81d41423748fff4a65acd4d8a4275e437cf9a8c2 (patch) | |
tree | f9b091f279b1b93f9aaa82d7c4f40d3274d8eb33 /lib | |
parent | 257863517fdcb6e29aefa1ac17fbaa7d37bd1725 (diff) | |
download | vyatta-cfg-81d41423748fff4a65acd4d8a4275e437cf9a8c2.tar.gz vyatta-cfg-81d41423748fff4a65acd4d8a4275e437cf9a8c2.zip |
Add loopback as a type for getInterfacesIPadresses().
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Vyatta/Misc.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm index 0c00b7e..fad3eb2 100755 --- a/lib/Vyatta/Misc.pm +++ b/lib/Vyatta/Misc.pm @@ -127,11 +127,12 @@ my %type_hash = ( 'broadcast' => 'is_broadcast', 'multicast' => 'is_multicast', 'pointtopoint' => 'is_pointtopoint', + 'loopback' => 'is_loopback', ); # getInterfacesIPadresses() returns IPv4 addresses for the interface type -# possible type of interfaces : 'broadcast', 'pointopoint', 'multicast', 'all' -# the loopback IP address is never returned with any of the above parameters +# possible type of interfaces : 'broadcast', 'pointtopoint', 'multicast', 'all' +# and 'loopback' sub getInterfacesIPadresses { my $type = shift; my $type_func; |