Scott Baker | 526e274 | 2015-10-16 17:47:52 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Setup CORD-related services -- vOLT, vCPE, vBNG. |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | |
| 8 | topology_template: |
| 9 | node_templates: |
Scott Baker | e4243b6 | 2015-10-16 17:56:05 -0700 | [diff] [blame] | 10 | ONOS: |
Scott Baker | 526e274 | 2015-10-16 17:47:52 -0700 | [diff] [blame] | 11 | type: tosca.nodes.ONOSService |
| 12 | requirements: |
| 13 | properties: |
| 14 | kind: onos |
| 15 | view_url: /admin/onos/onosservice/$id$/ |
Scott Baker | 3da20f5 | 2015-10-19 21:19:20 -0700 | [diff] [blame] | 16 | public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] } |
| 17 | artifacts: |
| 18 | pubkey: /opt/xos/observers/onos/onos_key.pub |
Scott Baker | 526e274 | 2015-10-16 17:47:52 -0700 | [diff] [blame] | 19 | |
| 20 | vBNG: |
| 21 | type: tosca.nodes.ONOSvBNGApp |
| 22 | requirements: |
| 23 | - onos_tenant: |
Scott Baker | e4243b6 | 2015-10-16 17:56:05 -0700 | [diff] [blame] | 24 | node: ONOS |
Scott Baker | 526e274 | 2015-10-16 17:47:52 -0700 | [diff] [blame] | 25 | relationship: tosca.relationships.TenantOfService |
| 26 | properties: |
Scott Baker | 3da20f5 | 2015-10-19 21:19:20 -0700 | [diff] [blame] | 27 | dependencies: org.onosproject.proxyarp, org.onosproject.virtualbng, org.onosproject.openflow, org.onosproject.fwd |
Scott Baker | 3ab4db8 | 2015-10-20 17:12:36 -0700 | [diff] [blame] | 28 | config_addresses.json: > |
Scott Baker | 526e274 | 2015-10-16 17:47:52 -0700 | [diff] [blame] | 29 | { |
| 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 Baker | 3ab4db8 | 2015-10-20 17:12:36 -0700 | [diff] [blame] | 46 | config_virtualbng.json: > |
Scott Baker | 526e274 | 2015-10-16 17:47:52 -0700 | [diff] [blame] | 47 | { |
| 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 Baker | 3da20f5 | 2015-10-19 21:19:20 -0700 | [diff] [blame] | 59 | 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 | |