Home > Configuration > Network > setroute_weight

setroute_weight

Use this method to set positive integer used by the routing algorithms to determine preference for this route over others of equal cost. The lower the weight, the higher the preference.

Syntax



Parameters

network

Network address in the route entry that you want to modify.
This is mandatory parameter.

netmask

Subnet mask associated with the network address.
This is mandatory parameter.

gateway

IP address of the gateway for this route. Can be either the IP address of the gateway, or can be null to specify a null interface route.
This is mandatory parameter.

ownergroup

The owner node group in a Cluster for this route. If owner node group is not specified then the route is treated as Striped route.
Default value = DEFAULT_NG.

weight

Positive integer used by the routing algorithms to determine preference for this route over others of equal cost. The lower the weight, the higher the preference.
Default value = ROUTE_DEFAULT_WEIGHT.
Minimum value = 1.
Maximum value = 65535.

Return Value

Returns simpleResult

See Also