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

Function getNetwork

server/server_test.go:1392–1412  ·  view source on GitHub ↗
(color string, tenant string)

Source from the content-addressed store, hash-verified

1390}
1391
1392func getNetwork(color string, tenant string) map[string]interface{} {
1393 return map[string]interface{}{
1394 "id": "network" + color,
1395 "name": "Network" + color,
1396 "description": "The " + color + " Network",
1397 "tenant_id": tenant,
1398 "route_targets": []string{"1000:10000", "2000:20000"},
1399 "shared": false,
1400 "providor_networks": map[string]interface{}{"segmentation_id": 12, "segmentation_type": "vlan"},
1401 "config": map[string]interface{}{
1402 "default_vlan": map[string]interface{}{
1403 "vlan_id": float64(1),
1404 "name": "default_vlan",
1405 },
1406 "empty_vlan": map[string]interface{}{},
1407 "vpn_vlan": map[string]interface{}{
1408 "name": "vpn_vlan",
1409 },
1410 },
1411 }
1412}
1413
1414func getSubnet(color string, tenant string, parent string) map[string]interface{} {
1415 return map[string]interface{}{

Callers 5

server_test.goFile · 0.85
BenchmarkPOSTAPIFunction · 0.85
BenchmarkGETAPIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected