Function
getSubnet
(color string, tenant string, parent string)
Source from the content-addressed store, hash-verified
| 1412 | } |
| 1413 | |
| 1414 | func getSubnet(color string, tenant string, parent string) map[string]interface{} { |
| 1415 | return map[string]interface{}{ |
| 1416 | "id": "subnet" + color, |
| 1417 | "name": "Subnet" + color, |
| 1418 | "description": "The " + color + " Subnet", |
| 1419 | "tenant_id": tenant, |
| 1420 | "cidr": "10.0.0.0/24", |
| 1421 | "network_id": parent, |
| 1422 | } |
| 1423 | } |
| 1424 | |
| 1425 | func getCity(name string) map[string]interface{} { |
| 1426 | return map[string]interface{}{ |
Tested by
no test coverage detected