SetNetworkConfig

Contributors netapp-mwallis amgrissino Download PDF of this page

You can use the SetNetworkConfig method to set the network configuration for a node. To display the current network settings for a node, run the GetNetworkConfig API method.

Note SolidFire Enterprise SDS does not support this method. If you use this method on a SolidFire eSDS system, the method will return an error.

Parameter

CAUTION:

Changing the bond-mode on a node can cause a temporary loss of network connectivity.

This method has the following input parameter:

Name Description Type Default value Required

network

An object containing node network settings to modify. You only need to add the fields you want changed to this method as attributes in this parameter.

None

No

Return value

This method has the following return value:

Name Description Type

network

The new and current network configuration for the node.

Request example

Requests for this method are similar to the following example:

{
	"method": "SetNetworkConfig",
		"params": {
			"network": {
				"Bond10G": {
					"bond-mode": "ALB"
				},
				"Bond1G": {
					"netmask": "255.255.224.0"
				},
				"eth0": {
					"method": "bond"
				},
				"lo": {
					"method": "loopback"
				}
			}
		}
}

Response example

The response from this method is the same as the response from the GetNetworkConfig method. The method displays all members for each object and includes the new values for any changed members.

New since version

9.6

Find more information