blob: fc6a3d5e3f77dafa0ade0e880fb83733f2722277 [file] [log] [blame]
Scott Baker526e2742015-10-16 17:47:52 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup CORD-related services -- vOLT, vCPE, vBNG.
4
5imports:
6 - custom_types/xos.yaml
7
8topology_template:
9 node_templates:
Scott Bakere4243b62015-10-16 17:56:05 -070010 ONOS:
Scott Baker526e2742015-10-16 17:47:52 -070011 type: tosca.nodes.ONOSService
12 requirements:
13 properties:
14 kind: onos
15 view_url: /admin/onos/onosservice/$id$/
Scott Baker3da20f52015-10-19 21:19:20 -070016 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
17 artifacts:
18 pubkey: /opt/xos/observers/onos/onos_key.pub
Scott Baker526e2742015-10-16 17:47:52 -070019
20 vBNG:
21 type: tosca.nodes.ONOSvBNGApp
22 requirements:
23 - onos_tenant:
Scott Bakere4243b62015-10-16 17:56:05 -070024 node: ONOS
Scott Baker526e2742015-10-16 17:47:52 -070025 relationship: tosca.relationships.TenantOfService
26 properties:
Scott Baker3da20f52015-10-19 21:19:20 -070027 dependencies: org.onosproject.proxyarp, org.onosproject.virtualbng, org.onosproject.openflow, org.onosproject.fwd
Scott Baker3ab4db82015-10-20 17:12:36 -070028 config_addresses.json: >
Scott Baker526e2742015-10-16 17:47:52 -070029 {
30 "addresses" : [
31 {
32 "dpid" : "00:00:00:00:00:00:00:a1",
33 "port" : "2",
34 "ips" : ["192.0.0.1/24"],
35 "mac" : "00:00:00:00:00:99"
36
37 },
38 {
39 "dpid" : "00:00:00:00:00:00:00:a5",
40 "port" : "4",
41 "ips" : ["200.0.0.5/24"],
42 "mac" : "00:00:00:00:00:98"
43 }
44 ]
45 }
Scott Baker3ab4db82015-10-20 17:12:36 -070046 config_virtualbng.json: >
Scott Baker526e2742015-10-16 17:47:52 -070047 {
48 "localPublicIpPrefixes" : [
49 "200.0.0.0/32",
50 "201.0.0.0/30",
51 "202.0.0.0/30"
52 ],
53 "nextHopIpAddress" : "200.0.0.5",
54 "publicFacingMac" : "00:00:00:00:00:66",
55 "xosIpAddress" : "10.11.10.1",
56 "xosRestPort" : "9999"
57 }
58
Scott Baker3da20f52015-10-19 21:19:20 -070059 mysite:
60 type: tosca.nodes.Site
61
62 mysite_onos:
63 description: ONOS Controller Slice
64 type: tosca.nodes.Slice
65 requirements:
66 - ONOS:
67 node: ONOS
68 relationship: tosca.relationships.MemberOfService
69 - site:
70 node: mysite
71 relationship: tosca.relationships.MemberOfSite
72
73 my_server:
74 type: tosca.nodes.Compute
75 capabilities:
76 # Host container properties
77 host:
78 properties:
79 num_cpus: 1
80 disk_size: 10 GB
81 mem_size: 4 MB
82 # Guest Operating System properties
83 os:
84 properties:
85 # host Operating System image properties
86 architecture: x86_64
87 type: linux
88 distribution: Ubuntu
89 version: 14.10
90 requirements:
91 - slice:
92 node: mysite_onos
93 relationship: tosca.relationships.MemberOfSlice
94