- resp["floatingips"] = list()
- # create a list of floting IP definitions and return it
- for i in range(100, 110):
- ip = dict()
- ip["router_id"] = "router_id"
- ip["description"] = "hardcoded in api"
- ip["created_at"] = "router_id"
- ip["updated_at"] = "router_id"
- ip["revision_number"] = 1
- ip["tenant_id"] = "tenant_id"
- ip["project_id"] = "project_id"
- ip["floating_network_id"] = str(i)
- ip["status"] = "ACTIVE"
- ip["id"] = str(i)
- ip["port_id"] = "port_id"
- ip["floating_ip_address"] = "172.0.0.%d" % i
- ip["fixed_ip_address"] = "10.0.0.%d" % i
- resp["floatingips"].append(ip)