From 8fc48e7a21274c11253cb7f881c9a4962defc672 Mon Sep 17 00:00:00 2001 From: ligc Date: Tue, 2 Jun 2015 23:43:53 -0400 Subject: [PATCH] do not try to add ipv6 networks into dhcp if there is no ipv6 network in networks table --- xCAT-server/lib/xcat/plugins/dhcp.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 90e96c252..96ef87cf7 100755 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -2078,6 +2078,7 @@ sub putmyselffirst { sub addnet6 { if ($::XCATSITEVALS{externaldhcpservers}) { return; } + if (!$usingipv6) { return; } my $netentry = shift; my $net = $netentry->{net}; my $iface = $netentry->{iface};