def modify_node(hostname, username, password, name, connection_limit=None, description=None, dynamic_ratio=None, logging=None, monitor=None, rate_limit=None, ratio=None, session=None, state=None, trans_label=None):
 params = {'connection-limit': connection_limit, 'description': description, 'dynamic-ratio': dynamic_ratio, 'logging': logging, 'monitor': monitor, 'rate-limit': rate_limit, 'ratio': ratio, 'session': session, 'state': state}
 bigip_session = _build_session(username, password, trans_label)
 payload = _loop_payload(params)
 payload['name'] = name
 try:
  response = bigip_session.put((BIG_IP_URL_BASE.format(host=hostname) + '/ltm/node/{name}'.format(name=name)), data=json.dumps(payload))
 except requests.exceptions.ConnectionError as e:
  return _load_connection_error(hostname, e)
 return _load_response(response)

def modify_node ( hostname , username , password , name , connection_limit = None , description = None , dynamic_ratio = None , logging = None , monitor = None , rate_limit = None , ratio = None , session = None , state = None , trans_label = None ) : params = { 'connection-limit' : connection_limit , 'description' : description , 'dynamic-ratio' : dynamic_ratio , 'logging' : logging , 'monitor' : monitor , 'rate-limit' : rate_limit , 'ratio' : ratio , 'session' : session , 'state' : state } bigip_session = _build_session ( username , password , trans_label ) payload = _loop_payload ( params ) payload [ 'name' ] = name try : response = bigip_session . put ( ( BIG_IP_URL_BASE . format ( host = hostname ) + '/ltm/node/{name}' . format ( name = name ) ) , data = json . dumps ( payload ) ) except requests . exceptions . ConnectionError as e : return _load_connection_error ( hostname , e ) return _load_response ( response )
a function to connect to a bigip device and modify an existing node .