summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-interfaces.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl
index 0c219c1..760cd4f 100644
--- a/scripts/vyatta-interfaces.pl
+++ b/scripts/vyatta-interfaces.pl
@@ -119,7 +119,9 @@ sub is_dhcp_enabled {
my $config = new VyattaConfig;
- if ($intf =~ m/^eth/) {
+ # 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/(\w+)\.(\d+)/) {
$config->setLevel("interfaces ethernet $1 vif $2");
} else {
@@ -129,8 +131,8 @@ sub is_dhcp_enabled {
$config->setLevel("interfaces bridge $intf");
} else {
#
- # currently we only support dhcp on ethernet
- # and bridge interfaces.
+ # FIXME: currently we only support dhcp on ethernet
+ # and bridge interfaces (what about wireles, ...???)
#
return 0;
}