#NEWLINE# def _to_node( self , el ) : #NEWLINE# #INDENT# def get_ips( el ) : #NEWLINE# #INDENT# return [ ip . get ( 'addr' ) for ip in el ] #NEWLINE# #UNINDENT# public_ip = get_ips ( self . _findall ( el , 'addresses/public/ip' ) ) #NEWLINE# private_ip = get_ips ( self . _findall ( el , 'addresses/private/ip' ) ) #NEWLINE# n = Node ( id = el . get ( 'id' ) , name = el . get ( 'name' ) , state = el . get ( 'status' ) , public_ip = public_ip , private_ip = private_ip , driver = self . connection . driver ) #NEWLINE# return n