added NM_CONTROLLED=no for configib and configeth and changed BOOTPROTO=none for redhat in both files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16156 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -194,6 +194,7 @@ for ($i=0; $i < (scalar @nic_ips4) ; $i++ ) {
 | 
			
		||||
            # the system
 | 
			
		||||
            print FILE "DEVICE=\'$nic\'\n";
 | 
			
		||||
            print FILE "BOOTPROTO=\'static\'\n";
 | 
			
		||||
            print FILE "NM_CONTROLLED=\'no\'\n";
 | 
			
		||||
            print FILE "BROADCAST=\'\'\n";
 | 
			
		||||
            print FILE "ETHTOOL_OPTIONS=\'\'\n";
 | 
			
		||||
            print FILE "IPADDR=\'".$nic_ips4[$i]."\'\n";
 | 
			
		||||
@@ -226,6 +227,7 @@ for ($i=0; $i < (scalar @nic_ips4) ; $i++ ) {
 | 
			
		||||
        if (!open(FILE, ">$dir/ifcfg-$specific_nic")) { system("logger -t xcat -p local4.err 'configeth: cannot open $dir/ifcfg-$specific_nic.'"); exit 1; }
 | 
			
		||||
        print FILE "DEVICE=$specific_nic\n";
 | 
			
		||||
        print FILE "BOOTPROTO=none\n";
 | 
			
		||||
        print FILE "NM_CONTROLLED=no\n";
 | 
			
		||||
        print FILE "IPADDR=$nic_ips4[$i]\n";
 | 
			
		||||
        print FILE "NETMASK=$netmask\n";
 | 
			
		||||
        #if (defined($gateway)) { print FILE "GATEWAY=$gateway\n"; }
 | 
			
		||||
@@ -298,6 +300,7 @@ for ($i=0; $i < (scalar @nic_ips6) ; $i++ )
 | 
			
		||||
            }
 | 
			
		||||
            print FILE "DEVICE=$nic\n";
 | 
			
		||||
            print FILE "BOOTPROTO=static\n";
 | 
			
		||||
            print FILE "NM_CONTROLLED=no\n";
 | 
			
		||||
            print FILE "STARTMODE=onboot\n";
 | 
			
		||||
        } else {
 | 
			
		||||
            if (!open(FILE, ">>$dir/ifcfg-$nic")) {
 | 
			
		||||
@@ -331,7 +334,8 @@ for ($i=0; $i < (scalar @nic_ips6) ; $i++ )
 | 
			
		||||
                exit 1;
 | 
			
		||||
            }
 | 
			
		||||
            print FILE "DEVICE=$nic\n";
 | 
			
		||||
            print FILE "BOOTPROTO=static\n";
 | 
			
		||||
            print FILE "BOOTPROTO=none\n";
 | 
			
		||||
            print FILE "NM_CONTROLLED=no\n";
 | 
			
		||||
            print FILE "ONBOOT=yes\n";
 | 
			
		||||
        } else {
 | 
			
		||||
            if (!open(FILE, ">>$dir/ifcfg-$nic")) { 
 | 
			
		||||
 
 | 
			
		||||
@@ -313,6 +313,7 @@ do
 | 
			
		||||
               then
 | 
			
		||||
                   # Write the info to the ifcfg file
 | 
			
		||||
                   echo "DEVICE=$nic
 | 
			
		||||
NM_CONTROLLED=no
 | 
			
		||||
BOOTPROTO=static
 | 
			
		||||
STARTMODE=onboot
 | 
			
		||||
IPADDR=$nicip" > $dir/ifcfg-$nic
 | 
			
		||||
@@ -355,7 +356,8 @@ IPADDR_$ipindex=$nicip" >> $dir/ifcfg-$nic
 | 
			
		||||
               then
 | 
			
		||||
                   # Write the info to the ifcfg file
 | 
			
		||||
                   echo "DEVICE=$nic
 | 
			
		||||
BOOTPROTO=static
 | 
			
		||||
NM_CONTROLLED=no
 | 
			
		||||
BOOTPROTO=none
 | 
			
		||||
ONBOOT=yes
 | 
			
		||||
IPADDR=$nicip" > $dir/ifcfg-$nic
 | 
			
		||||
                    # ipv6
 | 
			
		||||
@@ -394,7 +396,8 @@ IPV6ADDR=$nicip/$netmask" >> $dir/ifcfg-$nic
 | 
			
		||||
                       fi
 | 
			
		||||
                    else # ipv4 address
 | 
			
		||||
                        echo "DEVICE=$nic:$ipindex
 | 
			
		||||
BOOTPROTO=static
 | 
			
		||||
NM_CONTROLLED=no
 | 
			
		||||
BOOTPROTO=none
 | 
			
		||||
ONBOOT=yes
 | 
			
		||||
IPADDR=$nicip" > $dir/ifcfg-$nic:$ipindex
 | 
			
		||||
                        if [[ "$OSVER" == rhels6* ]]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user