diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-11-14 18:06:25 -0800 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-11-14 18:06:25 -0800 |
commit | 66eb0adacf0ae6238a31531d7ab8701ba842a16c (patch) | |
tree | cca1c8f433a400973e68cfe11289a687a1901db5 /scripts/vyatta-interfaces.pl | |
parent | db48fb251547dac1a8c7064be37c923c2a9bd209 (diff) | |
download | vyatta-cfg-66eb0adacf0ae6238a31531d7ab8701ba842a16c.tar.gz vyatta-cfg-66eb0adacf0ae6238a31531d7ab8701ba842a16c.zip |
rectify check for bond interface
Diffstat (limited to 'scripts/vyatta-interfaces.pl')
-rw-r--r-- | scripts/vyatta-interfaces.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl index ad47614..b5d38af 100644 --- a/scripts/vyatta-interfaces.pl +++ b/scripts/vyatta-interfaces.pl @@ -130,7 +130,7 @@ sub is_dhcp_enabled { # FIXME: this is wrong and depends on name of interface -> type # which is not dependable - if ($intf =~ m/^eth/ || $intf =~ m/^bond/) { + if ($intf =~ m/^eth/) { if ($intf =~ m/(\w+)\.(\d+)/) { $config->setLevel("interfaces ethernet $1 vif $2"); } else { @@ -138,6 +138,8 @@ sub is_dhcp_enabled { } } elsif ($intf =~ m/^br/) { $config->setLevel("interfaces bridge $intf"); + } elsif ($intf =~ m/^bond/) { + $config->setLevel("interfaces bonding $intf"); } else { # # FIXME: currently we only support dhcp on ethernet |