From 08f6edf7bd64f8c22755e3c42cc051c94feebdae Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Thu, 18 Feb 2010 17:10:38 -0800 Subject: add fucntion to return bridge-group that an interface might be assigned to --- lib/Vyatta/Interface.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/Vyatta') diff --git a/lib/Vyatta/Interface.pm b/lib/Vyatta/Interface.pm index a11b7c2..19dff4a 100755 --- a/lib/Vyatta/Interface.pm +++ b/lib/Vyatta/Interface.pm @@ -231,6 +231,14 @@ sub using_dhcp { return $addr[0]; } +sub bridge_grp { + my $self = shift; + my $config = new Vyatta::Config; + + $config->setLevel( $self->{path} ); + return $config->returnValue("bridge-group bridge"); +} + ## System checks # return array of current addresses (on system) -- cgit v1.2.3