diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-11-17 16:36:03 -0800 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-11-17 16:36:03 -0800 |
commit | 571ffbe1034197f7f3ab6374e7c978fc172efbb3 (patch) | |
tree | 7e01d003e18899b490082ff7d21b14711e848352 /scripts/VyattaMisc.pm | |
parent | 9e936dd974391ae8c694e9e04bf5393b8a68e477 (diff) | |
download | vyatta-cfg-571ffbe1034197f7f3ab6374e7c978fc172efbb3.tar.gz vyatta-cfg-571ffbe1034197f7f3ab6374e7c978fc172efbb3.zip |
check dhcp for bond vif interfaces as well
Diffstat (limited to 'scripts/VyattaMisc.pm')
-rwxr-xr-x | scripts/VyattaMisc.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/VyattaMisc.pm b/scripts/VyattaMisc.pm index b36e157..a1d1792 100755 --- a/scripts/VyattaMisc.pm +++ b/scripts/VyattaMisc.pm @@ -50,7 +50,11 @@ sub is_dhcp_enabled { } elsif ($intf =~ m/^br/) { $config->setLevel("interfaces bridge $intf"); } elsif ($intf =~ m/^bond/) { - $config->setLevel("interfaces bonding $intf"); + if ($intf =~ m/(\w+)\.(\d+)/) { + $config->setLevel("interfaces bonding $1 vif $2"); + } else { + $config->setLevel("interfaces bonding $intf"); + } } else { # # add other interfaces that can be configured to use dhcp above |