From 571ffbe1034197f7f3ab6374e7c978fc172efbb3 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Mon, 17 Nov 2008 16:36:03 -0800 Subject: check dhcp for bond vif interfaces as well --- scripts/VyattaMisc.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3