change networks.gateway value <myself> to <xcatmaster>
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9120 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
01ccf9e3f8
commit
cfb3c68892
@ -1938,7 +1938,7 @@ sub getNetwkInfo
|
||||
$nethash{$node}{$attr} = $_->{$attr};
|
||||
}
|
||||
}
|
||||
if($nethash{$node}{'gateway'} eq '<myself>')
|
||||
if($nethash{$node}{'gateway'} eq '<xcatmaster>')
|
||||
{
|
||||
if(xCAT::NetworkUtils->ip_forwarding_enabled())
|
||||
{
|
||||
|
@ -433,7 +433,7 @@ networks => {
|
||||
net => 'The network address.',
|
||||
mask => 'The network mask.',
|
||||
mgtifname => 'The interface name of the management/service node facing this network. !remote! indicates a non-local network for relay DHCP.',
|
||||
gateway => 'The network gateway. It can be set to an ip address or the keyword <myself>, the keyword <myself> indicates the cluster-facing ip address configured on this management node or service node. Leaving this field blank means that there is no gateway for this network.',
|
||||
gateway => 'The network gateway. It can be set to an ip address or the keyword <xcatmaster>, the keyword <xcatmaster> indicates the cluster-facing ip address configured on this management node or service node. Leaving this field blank means that there is no gateway for this network.',
|
||||
dhcpserver => 'The DHCP server that is servicing this network. Required to be explicitly set for pooled service node operation.',
|
||||
tftpserver => 'The TFTP server that is servicing this network. If not set, the DHCP server is assumed.',
|
||||
nameservers => 'The nameservers for this network. Used in creating the DHCP network definition, and DNS configuration.',
|
||||
|
@ -880,7 +880,7 @@ sub net_parms
|
||||
my $net = $_->{'net'};
|
||||
my $mask = $_->{'mask'};
|
||||
my $gw = $_->{'gateway'};
|
||||
if($gw eq '<myself>')
|
||||
if($gw eq '<xcatmaster>')
|
||||
{
|
||||
if(xCAT::NetworkUtils->ip_forwarding_enabled())
|
||||
{
|
||||
|
@ -1533,7 +1533,7 @@ sub addnet
|
||||
{
|
||||
$gateway = $ent->{gateway};
|
||||
|
||||
if ($gateway eq '<myself>')
|
||||
if ($gateway eq '<xcatmaster>')
|
||||
{
|
||||
if(xCAT::NetworkUtils->ip_forwarding_enabled())
|
||||
{
|
||||
@ -1719,7 +1719,7 @@ sub gen_aix_net
|
||||
my @netent = ( "network $net $mask\n{\n");
|
||||
if ( $gateway)
|
||||
{
|
||||
if ($gateway eq '<myself>')
|
||||
if ($gateway eq '<xcatmaster>')
|
||||
{
|
||||
if(xCAT::NetworkUtils->ip_forwarding_enabled())
|
||||
{
|
||||
|
@ -284,12 +284,12 @@ sub donets
|
||||
}
|
||||
}
|
||||
|
||||
# set gateway to keyword <myself>,
|
||||
# set gateway to keyword <xcatmaster>,
|
||||
# to indicate to use the cluster-facing ip address
|
||||
# on this management node or service node
|
||||
if (!$gateway)
|
||||
{
|
||||
$gateway = "<myself>";
|
||||
$gateway = "<xcatmaster>";
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user