blob: e9588c02982820c1d1d8134d0485dd0aec2b34b3 [file] [log] [blame]
Pingping Lin040a7732017-10-05 20:23:40 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3imports:
4 - custom_types/xos.yaml
Pingping Lin1d925a32017-10-27 11:48:45 -07005 - custom_types/site.yaml
6 - custom_types/slice.yaml
7 - custom_types/flavor.yaml
8 - custom_types/network.yaml
9 - custom_types/networktemplate.yaml
Pingping Lin040a7732017-10-05 20:23:40 -070010
Pingping Lin1d925a32017-10-27 11:48:45 -070011description: flat network for connecting from VM in CORD to servers outside
Pingping Lin040a7732017-10-05 20:23:40 -070012
13topology_template:
14 node_templates:
15
16# site, fully created in deployment.yaml
17 {{ site_name }}:
18 type: tosca.nodes.Site
Pingping Lin1d925a32017-10-27 11:48:45 -070019 properties:
20 name: {{ site_name }}
Pingping Lin040a7732017-10-05 20:23:40 -070021
22# flat network
23 flat_template:
24 type: tosca.nodes.NetworkTemplate
25 properties:
Pingping Lin1d925a32017-10-27 11:48:45 -070026 name: flat_template
Pingping Lin040a7732017-10-05 20:23:40 -070027 visibility: private
28 translation: none
29 vtn_kind: FLAT
30
31 flat_network:
Pingping Lin1d925a32017-10-27 11:48:45 -070032 type: tosca.nodes.Network
Pingping Lin040a7732017-10-05 20:23:40 -070033 properties:
Pingping Lin1d925a32017-10-27 11:48:45 -070034 name: flat_network
35 subnet: 103.0.0.0/24
36 permit_all_slices: true
Pingping Lin040a7732017-10-05 20:23:40 -070037 requirements:
Pingping Lin1d925a32017-10-27 11:48:45 -070038 - template:
Pingping Lin040a7732017-10-05 20:23:40 -070039 node: flat_template
Pingping Lin1d925a32017-10-27 11:48:45 -070040 relationship: tosca.relationships.BelongsToOne
Pingping Lin040a7732017-10-05 20:23:40 -070041 - owner:
42 node: {{ site_name }}_flat
43 relationship: tosca.relationships.MemberOfSlice
44
45 {{ site_name }}_flat:
46 description: This slice exists solely to own the flat network
47 type: tosca.nodes.Slice
48 properties:
Pingping Lin1d925a32017-10-27 11:48:45 -070049 name: {{ site_name }}_flat
50 default_isolation: vm
Pingping Lin040a7732017-10-05 20:23:40 -070051 network: noauto
52 requirements:
53 - site:
54 node: {{ site_name }}
Pingping Lin1d925a32017-10-27 11:48:45 -070055 relationship: tosca.relationships.BelongsToOne
Pingping Lin040a7732017-10-05 20:23:40 -070056