From 07ec375dc1846888f51ebc6ff49f0f3c854335b3 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Wed, 12 Oct 2011 18:49:27 -0500 Subject: Provide accessor for the net_prefix hash --- lib/Vyatta/Interface.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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; -- cgit v1.2.3