permalink | sidebar | keywords | summary |
---|---|---|---|
api/reference_element_api_setnetworkconfig.html |
sidebar |
network,config,configuration,set,setting,node,setnetworkconfig |
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. |
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.
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 |
This method has the following return value:
Name | Description | Type |
---|---|---|
network |
The new and current network configuration for the node. |
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" } } } }
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.