'Returns a list of IpPayload object based on the passed
network_info.'

@classmethod
def from_network_info(cls, network_info):

    ips = []
    if (network_info is not None):
        for vif in network_info:
            for ip in vif.fixed_ips():
                ips.append(cls(label=vif['network']['label'], mac=vif['address'], meta=vif['meta'], port_uuid=vif['id'], version=ip['version'], address=ip['address'], device_name=vif['devname']))
    return ips
