diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2010-02-18 17:10:38 -0800 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2010-03-08 14:07:15 -0800 |
commit | e0faf6349e79be7fb866ad9fb2474110b41d4e5b (patch) | |
tree | a3d75c6170144a55801a1673f44953f4d6f3fafe | |
parent | 907c84dcc8baea159431d9e380efe654afa0a87e (diff) | |
download | vyatta-cfg-e0faf6349e79be7fb866ad9fb2474110b41d4e5b.tar.gz vyatta-cfg-e0faf6349e79be7fb866ad9fb2474110b41d4e5b.zip |
add fucntion to return bridge-group that an interface might be assigned to
(cherry picked from commit 08f6edf7bd64f8c22755e3c42cc051c94feebdae)
-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) |