From d43cf0a3f008719e88bff4ddf554d546a592aaf2 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 19 Nov 2018 10:41:37 -0500 Subject: [PATCH] Fix dhcp plugin use of ip route It still had the code to strip out netstat's header. ip has no header. --- xCAT-server/lib/xcat/plugins/dhcp.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 83c09ab6a..c244bb2cd 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -1708,7 +1708,6 @@ sub process_request else { my @nsrnoutput = split /\n/, `ip -4 route`; - splice @nsrnoutput, 0, 2; foreach (@nsrnoutput) { #scan netstat my @parts = split /\s+/; my ($subnetip, $subnetcidr) = split('/', $parts[0]);