#NEWLINE# def servicegroup_server_delete( sg_name , s_name , s_port , **connection_args ) : #NEWLINE# #INDENT# "\n    Remove a server:port member from a servicegroup\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' netscaler.servicegroup_server_delete 'serviceGroupName' 'serverName' 'serverPort'\n    " #NEWLINE# ret = True #NEWLINE# server = _servicegroup_get_server ( sg_name , s_name , s_port , ** connection_args ) #NEWLINE# if ( server is None ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# nitro = _connect ( ** connection_args ) #NEWLINE# if ( nitro is None ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# sgsb = NSServiceGroupServerBinding ( ) #NEWLINE# sgsb . set_servicegroupname ( sg_name ) #NEWLINE# sgsb . set_servername ( s_name ) #NEWLINE# sgsb . set_port ( s_port ) #NEWLINE# try : #NEWLINE# #INDENT# NSServiceGroupServerBinding . delete ( nitro , sgsb ) #NEWLINE# #UNINDENT# except NSNitroError as error : #NEWLINE# #INDENT# log . debug ( 'netscaler module error - NSServiceGroupServerBinding() failed: {0}' . format ( ret ) ) #NEWLINE# ret = False #NEWLINE# #UNINDENT# _disconnect ( nitro ) #NEWLINE# return ret