#NEWLINE# def vserver_delete( v_name , **connection_args ) : #NEWLINE# #INDENT# "\n    Delete a lb vserver\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' netscaler.vserver_delete 'vserverName'\n    " #NEWLINE# ret = True #NEWLINE# vserver = _vserver_get ( v_name , ** connection_args ) #NEWLINE# if ( vserver is None ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# nitro = _connect ( ** connection_args ) #NEWLINE# if ( nitro is None ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# NSLBVServer . delete ( nitro , vserver ) #NEWLINE# #UNINDENT# except NSNitroError as error : #NEWLINE# #INDENT# log . debug ( 'netscaler module error - NSVServer.delete() failed: {0}' . format ( error ) ) #NEWLINE# ret = False #NEWLINE# #UNINDENT# _disconnect ( nitro ) #NEWLINE# return ret