def server_update(s_name, s_ip, **connection_args):
 altered = False
 cur_server = _server_get(s_name, **connection_args)
 if (cur_server is None):
  return False
 alt_server = NSServer()
 alt_server.set_name(s_name)
 if (cur_server.get_ipaddress() != s_ip):
  alt_server.set_ipaddress(s_ip)
  altered = True
 if (altered is False):
  return False
 nitro = _connect(**connection_args)
 if (nitro is None):
  return False
 ret = True
 try:
  NSServer.update(nitro, alt_server)
 except NSNitroError as error:
  log.debug('netscaler module error - NSServer.update() failed: {0}'.format(error))
  ret = False
 _disconnect(nitro)
 return ret

def server_update ( s_name , s_ip , ** connection_args ) : altered = False cur_server = _server_get ( s_name , ** connection_args ) if ( cur_server is None ) : return False alt_server = NSServer ( ) alt_server . set_name ( s_name ) if ( cur_server . get_ipaddress ( ) != s_ip ) : alt_server . set_ipaddress ( s_ip ) altered = True if ( altered is False ) : return False nitro = _connect ( ** connection_args ) if ( nitro is None ) : return False ret = True try : NSServer . update ( nitro , alt_server ) except NSNitroError as error : log . debug ( 'netscaler module error - NSServer.update() failed: {0}' . format ( error ) ) ret = False _disconnect ( nitro ) return ret
update a servers attributes cli example: .