NMS_V5DestroyStandByVariant

Destroys a provisioned standby variant on the specified interface.

Prototype

NMS_V5_RESULT_T NMS_V5DestroyStandByVariant ( NMS_V5_INTERFACE_ID_T interfaceId)

Argument

Description

interfaceId

Interface ID of a provisioned interface.


Return values

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.


Details

NMS_V5DestroyStandByVariant destroys the specified interface and clears the internal structures allocated for the standby variant on the specified provisioned interface.

See also

NMS_V5DestroyInterface, NMS_V5ProvisionStandByVariant

Example

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));
}