aboutsummaryrefslogtreecommitdiffstats
path: root/deployed-server/deployed-neutron-port.yaml
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-12-21 14:52:36 +0000
committerGerrit Code Review <review@openstack.org>2016-12-21 14:52:36 +0000
commit4a7e093a6b31a8bee1afb93e45d7d59114245bcc (patch)
treec3d878e5584bf32a1b5867c7b68328cb5b2ac8cd /deployed-server/deployed-neutron-port.yaml
parent64d720a40d19948f51ebdca59557b8b95f74dd65 (diff)
parent9313e18f302aafaa1cbe92ef59499af6d2074e1f (diff)
Merge "Add "deployed server" fake neutron ports"
Diffstat (limited to 'deployed-server/deployed-neutron-port.yaml')
-rw-r--r--deployed-server/deployed-neutron-port.yaml67
1 files changed, 67 insertions, 0 deletions
diff --git a/deployed-server/deployed-neutron-port.yaml b/deployed-server/deployed-neutron-port.yaml
new file mode 100644
index 00000000..7855be89
--- /dev/null
+++ b/deployed-server/deployed-neutron-port.yaml
@@ -0,0 +1,67 @@
+heat_template_version: 2016-10-14
+
+description: "
+ A fake OS::Neutron::Port stack which outputs fixed_ips and subnets based on
+ the input from the DeployedServerPortMap (set via parameter_defaults). This
+ lookup requires the use of port naming conventions. In order for this to work
+ with deployed-server the keys should be <hostname>-<network>.
+ Example:
+ parameter_defaults:
+ DeployedServerPortMap:
+ gatsby_ctlplane:
+ fixed_ips:
+ - ip_address: 127.0.0.1
+ subnets:
+ - cidr: 24"
+
+parameters:
+ name:
+ default: ''
+ type: string
+ network:
+ default: ''
+ type: string
+ fixed_ips:
+ default: ''
+ type: comma_delimited_list
+ replacement_policy:
+ default: ''
+ type: string
+ DeployedServerPortMap:
+ default: {}
+ type: json
+
+
+outputs:
+ fixed_ips:
+ value:
+ {get_param: [DeployedServerPortMap, {get_param: name}, fixed_ips]}
+ subnets:
+ value:
+ {get_param: [DeployedServerPortMap, {get_param: name}, subnets]}
+ name:
+ value: {get_param: name}
+ status:
+ value: DOWN
+ allowed_address_pairs:
+ value: {}
+ device_id:
+ value: ''
+ device_owner:
+ value: {get_param: network}
+ dns_assignment:
+ value: ''
+ port_security_enabled:
+ value: False
+ admin_state_up:
+ value: False
+ security_groups:
+ value: {}
+ network_id:
+ value: ''
+ tenant_id:
+ value: ''
+ qos_policy_id:
+ value: ''
+ mac_address:
+ value: ''