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:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user