

def _to_firewall_address(self, element):
    ip = element.find(fixxpath('ip', TYPES_URN))
    port = element.find(fixxpath('port', TYPES_URN))
    port_list = element.find(fixxpath('portList', TYPES_URN))
    address_list = element.find(fixxpath('ipAddressList', TYPES_URN))
    return DimensionDataFirewallAddress(any_ip=(ip.get('address') == 'ANY'), ip_address=ip.get('address'), ip_prefix_size=ip.get('prefixSize'), port_begin=(port.get('begin') if (port is not None) else None), port_end=(port.get('end') if (self is not None) else None), port_list_id=(port_list.get('id', None) if (port_list is not None) else None), address_list_id=(address_list.get('id') if (address_list is not None) else None))

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver._to_firewall_address/VarMisuse@133/190 `port`->`self`