diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2010-02-18 17:10:38 -0800 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2010-02-18 17:10:38 -0800 |
commit | 08f6edf7bd64f8c22755e3c42cc051c94feebdae (patch) | |
tree | 878347ed74c9881322f52ee8f41045bc7d1090f2 /lib/Vyatta | |
parent | fec4ddf69e25c9dc0ee54bddf73782d4451036ca (diff) | |
download | vyatta-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-x | lib/Vyatta/Interface.pm | 8 |
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) |