#NEWLINE# def _to_node( self , element ) : #NEWLINE# #INDENT# ipaddress = findtext ( element , 'ipv4Address' , TYPES_URN ) #NEWLINE# if ( ipaddress is None ) : #NEWLINE# #INDENT# ipaddress = findtext ( element , 'ipv6Address' , TYPES_URN ) #NEWLINE# #UNINDENT# name = findtext ( element , 'name' , TYPES_URN ) #NEWLINE# node = DimensionDataVIPNode ( id = element . get ( 'id' ) , name = name , status = self . _VALUE_TO_STATE_MAP . get ( findtext ( element , 'state' , TYPES_URN ) , State . UNKNOWN ) , connection_rate_limit = findtext ( element , 'connectionRateLimit' , TYPES_URN ) , connection_limit = findtext ( element , 'connectionLimit' , TYPES_URN ) , ip = ipaddress ) #NEWLINE# return node