Destroys a provisioned standby variant on the specified interface.
NMS_V5_RESULT_T NMS_V5DestroyStandByVariant ( NMS_V5_INTERFACE_ID_T interfaceId)
|
Argument |
Description |
|
interfaceId |
Interface ID of a provisioned interface. |
|
Return value |
Description |
|
NMSV5_SUCCESS |
|
|
NMSV5_INVALID_INTERFACE_ID |
Specified interface is not provisioned. |
|
NMSV5_NOT_INITIALIZED |
NMS V5 library was not initialized with NMS_V5Initialize. |
NMS_V5DestroyStandByVariant destroys the specified interface and clears the internal structures allocated for the standby variant on the specified provisioned interface.
NMS_V5DestroyInterface, NMS_V5ProvisionStandByVariant
void DestroyStandbyVariant( void )
{
NMS_V5_RESULT_TNmsResult;
DWORD InterfaceId;
printf("NMS_V5DestroyStandbyVariant:\n");
PrintInterfaces();
/* Get parameters */
promptdw_nodft("Enter interfaceId", &InterfaceId);
NmsResult = NMS_V5DestroyStandbyVariant( InterfaceId );
printf ("NMS_V5DestroyStandbyVariant:
Result=%s\n",PRINT_RESULT(NmsResult));
}