def create_info_cache(nw_cache):
    if (nw_cache is None):
        pub0 = ('192.168.1.100',)
        pub1 = ('2001:db8:0:1::1',)

        def _ip(ip):
            return {'address': ip, 'type': 'fixed'}
        nw_cache = [{'address': 'aa:aa:aa:aa:aa:aa', 'id': 1, 'network': {'bridge': 'br0', 'id': 1, 'label': 'test1', 'subnets': [{'cidr': '192.168.1.0/24', 'ips': [_ip(ip) for ip in pub0]}, {'cidr': 'b33f::/64', 'ips': [_ip(ip) for ip in pub1]}]}}]
    if (not isinstance(nw_cache, six.string_types)):
        nw_cache = jsonutils.dumps(nw_cache)
    return {'info_cache': {'network_info': nw_cache, 'deleted': False, 'created_at': None, 'deleted_at': None, 'updated_at': None}}
def create_info_cache(nw_cache):
    if (nw_cache is None):
        pub0 = ('192.168.1.100',)
        pub1 = ('2001:db8:0:1::1',)

        def _ip(ip):
            return {'address': ip, 'type': 'fixed'}
        nw_cache = [{'address': 'aa:aa:aa:aa:aa:aa', 'id': 1, 'network': {'bridge': 'br0', 'id': 1, 'label': 'test1', 'subnets': [{'cidr': '192.168.1.0/24', 'ips': [_ip(ip) for ip in pub0]}, {'cidr': 'b33f::/64', 'ips': [_ip(ip) for ip in pub1]}]}}]
    if (not isinstance(nw_cache, six.string_types)):
        nw_cache = jsonutils.dumps(nw_cache)
    return {'info_cache': {'network_info': nw_cache, 'deleted': False, 'created_at': None, 'deleted_at': None, 'updated_at': None}}