Ucs_Return_t Ucs_Rm_SetNodeAvailable | ( | Ucs_Inst_t * | self, |
Ucs_Rm_Node_t * | node_ptr, | ||
bool | available | ||
) |
Sets the availability attribute (available
or not
available
) of the given node and triggers the routing process to handle attached route(s).
In case of available
the function starts the routing process that checks whether there are endpoints to build on this node. In case of unavailable
the function informs sub modules like XRM to check whether there are resources to release and simultaneously unlock suspended
routes that link to this node.
self | The UNICENS instance |
node_ptr | Reference to the node to be looked for. |
available | Specifies whether the node is available or not |
Value | Description |
---|---|
UCS_RET_SUCCESS | No error |
UCS_RET_ERR_ALREADY_SET | Node is already set to "available" or "not available" |
UCS_RET_ERR_PARAM | At least one parameter is NULL. |
UCS_RET_ERR_NOT_INITIALIZED | UNICENS is not initialized |
UCS_RET_ERR_NOT_AVAILABLE | The function cannot be processed because the network is not available |
Unavailable
after the network has been shutdown respectively after transition from Available
to Not
available
. This in turn means that the user has to set the corresponding nodes to Available
after network started up respectively after the network transition from NotAvailable
to Available
.
Example