summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2010-02-18 17:10:38 -0800
committerMohit Mehta <mohit.mehta@vyatta.com>2010-02-18 17:10:38 -0800
commit08f6edf7bd64f8c22755e3c42cc051c94feebdae (patch)
tree878347ed74c9881322f52ee8f41045bc7d1090f2 /lib/Vyatta
parentfec4ddf69e25c9dc0ee54bddf73782d4451036ca (diff)
downloadvyatta-cfg-08f6edf7bd64f8c22755e3c42cc051c94feebdae.tar.gz
vyatta-cfg-08f6edf7bd64f8c22755e3c42cc051c94feebdae.zip
add fucntion to return bridge-group that an interface might be assigned to
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-xlib/Vyatta/Interface.pm8
1 files changed, 8 insertions, 0 deletions
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)