2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-02 16:28:25 +00:00

Fix dhcp plugin use of ip route

It still had the code to strip out netstat's header.  ip has no header.
This commit is contained in:
Jarrod Johnson
2018-11-19 10:41:37 -05:00
parent af9b6baf6e
commit d43cf0a3f0

View File

@@ -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]);