diff options
Diffstat (limited to 'lib/Vyatta/Interface.pm')
-rw-r--r-- | lib/Vyatta/Interface.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Vyatta/Interface.pm b/lib/Vyatta/Interface.pm index 017b7e4..c37d77a 100644 --- a/lib/Vyatta/Interface.pm +++ b/lib/Vyatta/Interface.pm @@ -71,6 +71,13 @@ my %net_prefix = ( 'wlm[\d]+' => { path => 'wireless-modem' }, ); +# get list of interface types +sub interface_types { + my @types = map { $net_prefix{$_}{path} } keys %net_prefix; + return @types; +} + +# new interface description object sub new { my $that = shift; my $name = pop; |