From a611df566dbdba9aff9210cb59408c23b05c2dd6 Mon Sep 17 00:00:00 2001 From: Martin Cuchran <cuchy@Martins-MacBook-Pro-4.local> Date: Tue, 7 Feb 2017 00:16:49 +0100 Subject: [PATCH] Final network configuration in json --- Openstack/pv176.json | 40 ++++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/Openstack/pv176.json b/Openstack/pv176.json index 68023ab..8362595 100644 --- a/Openstack/pv176.json +++ b/Openstack/pv176.json @@ -20,26 +20,46 @@ "internal_subnet":{ "type": "OS::Neutron::Subnet", "properties":{ - "network_id": { "Ref": "internal_net" }, - "cidr": "10.0.0.0/8", - "dns_nameservers": [ "147.251.4.3", "8.8.8.8" ], - "ip_version": "4", - "enable_dhcp": "false", - "name": "PV176-private-subnet" + "network_id": { "get_resource": "internal_net" }, + "cidr": "10.0.0.0/8", + "dns_nameservers": [ "147.251.4.3", "8.8.8.8" ], + "ip_version": "4", + "enable_dhcp": "false", + "name": "PV176-private-subnet" } }, "internal_router":{ "type": "OS::Neutron::Router", "properties":{ - "external_gateway_info": { "network": "public-float-21" }, - "name": "PV176-router" + "external_gateway_info": { "network": "public-float-21" }, + "name": "PV176-router" } }, "internal_interface":{ "type": "OS::Neutron::RouterInterface", "properties":{ - "router_id": { "Ref": "internal_router" }, - "subnet": { "Ref": "internal_subnet" } + "router_id": { "get_resource": "internal_router" }, + "subnet": { "get_resource": "internal_subnet" } + } + }, + "full_access_secgroup":{ + "type": "OS::Neutron::SecurityGroup", + "properties":{ + "name": "PV176-security-group-MUNI", + "rules":[ + { + "protocol": "tcp", + "remote_ip_prefix": "147.251.0.0/16", + "port_range_min": "1", + "port_range_max": "65000" + }, + { + "protocol": "tcp", + "remote_ip_prefix": "10.0.0.0/8", + "port_range_min": "1", + "port_range_max": "65000" + } + ] } } } -- GitLab