diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-10-12 18:49:27 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-12 18:49:27 -0500 |
commit | 07ec375dc1846888f51ebc6ff49f0f3c854335b3 (patch) | |
tree | 63f84841006aeebd52c7d8023978915f963ef669 /lib | |
parent | 1fc698cda44350972f68e36c8a971cea775b6fc8 (diff) | |
download | vyatta-cfg-07ec375dc1846888f51ebc6ff49f0f3c854335b3.tar.gz vyatta-cfg-07ec375dc1846888f51ebc6ff49f0f3c854335b3.zip |
Provide accessor for the net_prefix hash
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Vyatta/Interface.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Vyatta/Interface.pm b/lib/Vyatta/Interface.pm index 6d8de08..e22ae60 100755 --- a/lib/Vyatta/Interface.pm +++ b/lib/Vyatta/Interface.pm @@ -79,6 +79,10 @@ my %net_prefix = ( '^ifb[\d]+$' => { path => 'input' }, ); +sub get_net_prefix { + return %net_prefix; +} + # get list of interface types (only used in usage function) sub interface_types { my @types = map { $net_prefix{$_}{path} } keys %net_prefix; |