2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 12:20:40 +00:00

Remove trailing spaces in file xCAT-server/lib/xcat/plugins/networks.pm

This commit is contained in:
GONG Jie
2017-12-31 23:59:59 +00:00
parent 25acbfd27f
commit b7603c7877

View File

@ -120,7 +120,7 @@ sub process_request
#----------------------------------------------------------------------------
=head3 donets
Get network information and display or create xCAT network defs
Get network information and display or create xCAT network defs
Returns:
0 - OK
@ -358,7 +358,7 @@ sub donets
if ($foundmatch) {
next;
}
# add new network def
$nettab->setAttribs({ 'net' => $net, 'mask' => $netmask }, { 'netname' => $netname, 'gateway' => $gateway, 'mgtifname' => $i });
}
@ -371,7 +371,7 @@ sub donets
# For Linux systems
my @ip6table = split /\n/, `/sbin/ip -6 route`;
my @rtable = split /\n/, `/bin/netstat -rn`;
my @mtable = split /\n/, `/bin/netstat -i`;
my @mtable = split /\n/, `/bin/netstat -i`;
splice @rtable, 0, 2;
splice @mtable, 0, 2;
@ -545,7 +545,7 @@ sub donets
push @{ $rsp->{data} }, " mgtifname=$mgtifname";
if ($mtu)
{
push @{ $rsp->{data} }, " mtu=$mtu";
push @{ $rsp->{data} }, " mtu=$mtu";
}
} else {
# if this net entry exists, go to next line in networks table