mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	Modify message for rspconfig ipsrc option
This commit is contained in:
		| @@ -408,13 +408,13 @@ OPTIONS | ||||
|  | ||||
| \ **ipsrc**\  | ||||
|   | ||||
|  Get the ip source for OpenBMC. | ||||
|  Get the IP source for OpenBMC. | ||||
|   | ||||
|  | ||||
|  | ||||
| \ **ip**\  | ||||
|   | ||||
|  The ip address. | ||||
|  The IP address. | ||||
|   | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -310,11 +310,11 @@ Get or set vlan ID. For get vlan ID, if vlan is not enabled, 'BMC VLAN disabled' | ||||
|  | ||||
| =item B<ipsrc> | ||||
|  | ||||
| Get the ip source for OpenBMC. | ||||
| Get the IP source for OpenBMC. | ||||
|  | ||||
| =item B<ip> | ||||
|  | ||||
| The ip address. | ||||
| The IP address. | ||||
|  | ||||
| =item B<memdecfg>={B<configure | deconfigure>:I<processingunit>:I<unit|bank>:I<id,...>} | ||||
|  | ||||
|   | ||||
| @@ -630,7 +630,7 @@ sub parse_args { | ||||
|                 return ([ 1, "Can not configure and display nodes' value at the same time" ]) if ($setorget and $setorget eq "get"); | ||||
|                 my $key = $1; | ||||
|                 my $value = $2; | ||||
|                 return ([ 1, "Unsupport to configure ipsrc" ]) if ($key eq "ipsrc"); | ||||
|                 return ([ 1, "Changing ipsrc value is currently not supported." ]) if ($key eq "ipsrc"); | ||||
|                 return ([ 1, "Unsupported command: $command $key" ]) unless ($key =~ /^ip$|^netmask$|^gateway$|^hostname$|^vlan$/); | ||||
|  | ||||
|                 my $nodes_num = @$noderange; | ||||
| @@ -1845,9 +1845,6 @@ sub rspconfig_response { | ||||
|             if ($adapter_id) { | ||||
|                 if (defined($content{Address}) and $content{Address}) { | ||||
|                     unless ($address =~ /n\/a/) { | ||||
|                         if ($ipsrc eq "DHCP" and $xcatdebugmode) { | ||||
|                             process_debug_info($node, "There is an IP address:$address got through DHCP"); | ||||
|                         } | ||||
|                         # We have already processed an entry with adapter information. | ||||
|                         # This must be a second entry. Display an error. Currently only supporting | ||||
|                         # an adapter with a single IP address set. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user