MCPcopy Create free account
hub / github.com/cloudwan/gohan / getSubnet

Function getSubnet

server/server_test.go:1414–1423  ·  view source on GitHub ↗
(color string, tenant string, parent string)

Source from the content-addressed store, hash-verified

1412}
1413
1414func 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
1425func getCity(name string) map[string]interface{} {
1426 return map[string]interface{}{

Callers 1

server_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected