(color string, tenant string)
| 1390 | } |
| 1391 | |
| 1392 | func 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 | |
| 1414 | func getSubnet(color string, tenant string, parent string) map[string]interface{} { |
| 1415 | return map[string]interface{}{ |
no outgoing calls
no test coverage detected