Fixed bug with regards to subnet lookups.
[snaps.git] / examples / external-network / deploy-ext-net.yaml
1 # Copyright (c) 2016 Cable Television Laboratories, Inc. ("CableLabs")
2 #                    and others.  All rights reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at:
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 ---
16 openstack:
17   connection:
18     # Note - when http_proxy is set, you must also configure ssh for proxy tunneling on your host.
19     username: admin
20     password: NotMyPAss!
21     auth_url: http://10.10.10.50:5000/v2.0/
22     project_name: admin
23     http_proxy: localhost:3128
24   images:
25     - image:
26         name: Ubuntu
27         format: qcow2
28         image_user: ubuntu
29         download_url: http://uec-images.ubuntu.com/releases/trusty/14.04/ubuntu-14.04-server-cloudimg-amd64-disk1.img
30   networks:
31     - network:
32         name: ext-net
33         external: True
34         network_type: vlan
35         project_name: service
36         subnets:
37           - subnet:
38               name: ext-subnet
39               cidr: 10.197.101.0/24
40               gateway_ip: 10.197.101.1
41               start: 10.197.101.101
42               end: 10.197.101.200
43     - network:
44         name: internal-net
45         subnets:
46           - subnet:
47               name: internal-subnet
48               cidr: 10.0.1.0/24
49               dns_nameservers: [8.8.8.8]
50   routers:
51     - router:
52         name: ext-net-router
53         external_gateway: ext-net
54         internal_subnets:
55           - subnet:
56               project_name: admin
57               network_name: internal-net
58               subnet_name: internal-subnet
59   keypairs:
60     - keypair:
61         name: ext-net-kp
62         public_filepath: /tmp/ext-net.pub
63         private_filepath: /tmp/ext-net
64   instances:
65     - instance:
66         name: ext-net-app
67         flavor: m1.small
68         imageName: Ubuntu
69         keypair_name: ext-net-kp
70         ports:
71           - port:
72               name: internal-net-port
73               network_name: internal-net
74         floating_ips:
75           - floating_ip:
76               name: fip1
77               port_name: internal-net-port
78               router_name: ext-net-router
79               subnet_name: internal-subnet
80