Pingping Lin | c5bf2e5 | 2016-10-05 01:50:08 +0000 | [diff] [blame^] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0
|
| 2 |
|
| 3 | description: Setup MCORD-related services.
|
| 4 |
|
| 5 | imports:
|
| 6 | - custom_types/xos.yaml
|
| 7 |
|
| 8 | node_types:
|
| 9 |
|
| 10 | tosca.nodes.MCORDService:
|
| 11 | derived_from: tosca.nodes.Root
|
| 12 | description: >
|
| 13 | An XOS Service object. Services may be listed in the Service
|
| 14 | directory and may be linked together via Tenancy Relationships.
|
| 15 | capabilities:
|
| 16 | scalable:
|
| 17 | type: tosca.capabilities.Scalable
|
| 18 | service:
|
| 19 | type: tosca.capabilities.xos.Service
|
| 20 | properties:
|
| 21 | no-delete:
|
| 22 | type: boolean
|
| 23 | default: false
|
| 24 | description: Do not allow Tosca to delete this object
|
| 25 | no-create:
|
| 26 | type: boolean
|
| 27 | default: false
|
| 28 | description: Do not allow Tosca to create this object
|
| 29 | no-update:
|
| 30 | type: boolean
|
| 31 | default: false
|
| 32 | description: Do not allow Tosca to update this object
|
| 33 | kind:
|
| 34 | type: string
|
| 35 | default: RAN
|
| 36 | description: Type of service.
|
| 37 | view_url:
|
| 38 | type: string
|
| 39 | required: false
|
| 40 | description: URL to follow when icon is clicked in the Service Directory.
|
| 41 | icon_url:
|
| 42 | type: string
|
| 43 | required: false
|
| 44 | description: ICON to display in the Service Directory.
|
| 45 | enabled:
|
| 46 | type: boolean
|
| 47 | default: true
|
| 48 | published:
|
| 49 | type: boolean
|
| 50 | default: true
|
| 51 | description: If True then display this Service in the Service Directory.
|
| 52 | public_key:
|
| 53 | type: string
|
| 54 | required: false
|
| 55 | description: Public key to install into Instances to allows Services to SSH into them.
|
| 56 | private_key_fn:
|
| 57 | type: string
|
| 58 | required: false
|
| 59 | description: Location of private key file
|
| 60 | versionNumber:
|
| 61 | type: string
|
| 62 | required: false
|
| 63 | description: Version number of Service.
|
| 64 |
|
| 65 | tosca.nodes.VBBUComponent:
|
| 66 | derived_from: tosca.nodes.Root
|
| 67 | description: >
|
| 68 | CORD: vBBU Component of MCORD Service.
|
| 69 | properties:
|
| 70 | kind:
|
| 71 | type: string
|
| 72 | default: RAN
|
| 73 | description: Kind of component
|
| 74 | s1u_tag:
|
| 75 | type: string
|
| 76 | required: false
|
| 77 | default: 901
|
| 78 | description: VTN stag port-name
|
| 79 | s1mme_tag:
|
| 80 | type: string
|
| 81 | required: false
|
| 82 | default: 900
|
| 83 | description: VTN stag port-name
|
| 84 | rru_tag:
|
| 85 | type: string
|
| 86 | required: false
|
| 87 | default: 999
|
| 88 | description: VTN stag port-name
|
| 89 | display_message:
|
| 90 | type: string
|
| 91 | required: false
|
| 92 | default: New vBBU Component
|
| 93 | description: Just a message
|
| 94 |
|
| 95 | tosca.nodes.VPGWCComponent:
|
| 96 | derived_from: tosca.nodes.Root
|
| 97 | description: >
|
| 98 | CORD: vPGWC Component of MCORD Service.
|
| 99 | properties:
|
| 100 | kind:
|
| 101 | type: string
|
| 102 | default: VPGWC_KIND
|
| 103 | description: Kind of component
|
| 104 | s5s8_pgw_tag:
|
| 105 | type: string
|
| 106 | required: false
|
| 107 | default: 300
|
| 108 | description: VTN stag port-name
|
| 109 | display_message:
|
| 110 | type: string
|
| 111 | required: false
|
| 112 | default: New vPGWc Component
|
| 113 | description: Just a message
|
| 114 |
|
| 115 | topology_template:
|
| 116 | node_templates:
|
| 117 | vBBU:
|
| 118 | type: tosca.nodes.MCORDService
|
| 119 | requirements:
|
| 120 | properties:
|
| 121 | kind: RAN
|
| 122 | icon_url: /static/mCordServices/service_server.png
|
| 123 | view_url: /admin/vbbu/vbbucomponent
|
| 124 | public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
|
| 125 | private_key_fn: /opt/xos/services/vbbu/keys/vBBU_rsa
|
| 126 | artifacts:
|
| 127 | pubkey: /opt/xos/services/vbbu/keys/vBBU_rsa.pub
|
| 128 |
|
| 129 | vPGWC:
|
| 130 | type: tosca.nodes.MCORDService
|
| 131 | requirements:
|
| 132 | properties:
|
| 133 | kind: vEPC
|
| 134 | icon_url: /static/mCordServices/service_server.png
|
| 135 | view_url: /admin/vpgwc/vpgwccomponent
|
| 136 | public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
|
| 137 | private_key_fn: /opt/xos/services/vpgwc/keys/vPGWC_rsa
|
| 138 | artifacts:
|
| 139 | pubkey: /opt/xos/services/vpgwc/keys/vPGWC_rsa.pub
|
| 140 |
|
| 141 | m1.xlarge:
|
| 142 | type: tosca.nodes.Flavor
|
| 143 |
|
| 144 | Private:
|
| 145 | type: tosca.nodes.NetworkTemplate
|
| 146 |
|
| 147 | External:
|
| 148 | type: tosca.nodes.NetworkTemplate
|
| 149 |
|
| 150 | management_template:
|
| 151 | type: tosca.nodes.NetworkTemplate
|
| 152 | properties:
|
| 153 | visibility: private
|
| 154 | translation: none
|
| 155 |
|
| 156 | management:
|
| 157 | type: tosca.nodes.network.Network.XOS
|
| 158 | # properties:
|
| 159 | # no-create: true
|
| 160 | # no-delete: true
|
| 161 | # no-update: true
|
| 162 |
|
| 163 | lan_3gpp_s1mme_network:
|
| 164 | type: tosca.nodes.network.Network.XOS
|
| 165 | properties:
|
| 166 | ip_version: 4
|
| 167 | labels: lan_3gpp_s1uc_net
|
| 168 | cidr: 172.16.1.0/24
|
| 169 | start_ip: 172.16.1.3
|
| 170 | end_ip: 172.16.1.12
|
| 171 | gateway_ip: 172.16.1.1
|
| 172 | requirements:
|
| 173 | - network_template:
|
| 174 | node: External
|
| 175 | relationship: tosca.relationships.UsesNetworkTemplate
|
| 176 | - owner:
|
| 177 | node: mysite_mobile_net
|
| 178 | relationship: tosca.relationships.MemberOfSlice
|
| 179 | - connection:
|
| 180 | node: mysite_vbbu_slice1
|
| 181 | relationship: tosca.relationships.ConnectsToSlice
|
| 182 |
|
| 183 | lan_3gpp_s1u_network:
|
| 184 | type: tosca.nodes.network.Network.XOS
|
| 185 | properties:
|
| 186 | ip_version: 4
|
| 187 | labels: lan_3gpp_s1u_net
|
| 188 | cidr: 172.16.2.0/24
|
| 189 | start_ip: 172.16.2.3
|
| 190 | end_ip: 172.16.2.12
|
| 191 | gateway_ip: 172.16.16.1
|
| 192 | requirements:
|
| 193 | - network_template:
|
| 194 | node: External
|
| 195 | relationship: tosca.relationships.UsesNetworkTemplate
|
| 196 | - owner:
|
| 197 | node: mysite_mobile_net
|
| 198 | relationship: tosca.relationships.MemberOfSlice
|
| 199 | - connection:
|
| 200 | node: mysite_vbbu_slice1
|
| 201 | relationship: tosca.relationships.ConnectsToSlice
|
| 202 |
|
| 203 | lan_rru_network:
|
| 204 | type: tosca.nodes.network.Network.XOS
|
| 205 | properties:
|
| 206 | ip_version: 4
|
| 207 | labels: lan_rru_net
|
| 208 | cidr: 172.16.0.0/24
|
| 209 | start_ip: 172.16.0.3
|
| 210 | end_ip: 172.16.0.12
|
| 211 | gateway_ip: 172.16.0.1
|
| 212 | requirements:
|
| 213 | - network_template:
|
| 214 | node: External
|
| 215 | relationship: tosca.relationships.UsesNetworkTemplate
|
| 216 | - owner:
|
| 217 | node: mysite_mobile_net
|
| 218 | relationship: tosca.relationships.MemberOfSlice
|
| 219 | - connection:
|
| 220 | node: mysite_vbbu_slice1
|
| 221 | relationship: tosca.relationships.ConnectsToSlice
|
| 222 |
|
| 223 | lan_3gpp_s5s8_pgw_network:
|
| 224 | type: tosca.nodes.network.Network.XOS
|
| 225 | properties:
|
| 226 | ip_version: 4
|
| 227 | labels: lan_3gpp_s5s8_pgw_net
|
| 228 | cidr: 172.17.1.0/24
|
| 229 | start_ip: 172.17.1.2
|
| 230 | end_ip: 172.17.1.8
|
| 231 | gateway_ip: 172.17.1.1
|
| 232 | requirements:
|
| 233 | - network_template:
|
| 234 | node: External
|
| 235 | relationship: tosca.relationships.UsesNetworkTemplate
|
| 236 | - owner:
|
| 237 | node: mysite_mobile_net
|
| 238 | relationship: tosca.relationships.MemberOfSlice
|
| 239 | - connection:
|
| 240 | node: mysite_vpgwc_slice1
|
| 241 | relationship: tosca.relationships.ConnectsToSlice
|
| 242 |
|
| 243 | mysite:
|
| 244 | type: tosca.nodes.Site
|
| 245 |
|
| 246 | mcord-bbu-multi-nic:
|
| 247 | type: tosca.nodes.Image
|
| 248 |
|
| 249 | mcord-vpgwc-onos-multi-nic:
|
| 250 | type: tosca.nodes.Image
|
| 251 |
|
| 252 | trusty-server-multi-nic:
|
| 253 | type: tosca.nodes.Image
|
| 254 |
|
| 255 | mysite_management:
|
| 256 | description: This slice exists solely to own the management network
|
| 257 | type: tosca.nodes.Slice
|
| 258 | properties:
|
| 259 | network: noauto
|
| 260 | requirements:
|
| 261 | - site:
|
| 262 | node: mysite
|
| 263 | relationship: tosca.relationships.MemberOfSite
|
| 264 |
|
| 265 | mysite_mobile_net:
|
| 266 | description: This slice exists solely to own the mobile network
|
| 267 | type: tosca.nodes.Slice
|
| 268 | properties:
|
| 269 | network: noauto
|
| 270 | requirements:
|
| 271 | - site:
|
| 272 | node: mysite
|
| 273 | relationship: tosca.relationships.MemberOfSite
|
| 274 |
|
| 275 | mysite_vbbu_slice1:
|
| 276 | description: vBBU Service Slice 1
|
| 277 | type: tosca.nodes.Slice
|
| 278 | requirements:
|
| 279 | - vBBU:
|
| 280 | node: vBBU
|
| 281 | relationship: tosca.relationships.MemberOfService
|
| 282 | - site:
|
| 283 | node: mysite
|
| 284 | relationship: tosca.relationships.MemberOfSite
|
| 285 | - default_image:
|
| 286 | node: mcord-bbu-multi-nic
|
| 287 | relationship: tosca.relationships.DefaultImage
|
| 288 | - default_flavor:
|
| 289 | node: m1.xlarge
|
| 290 | relationship: tosca.relationships.DefaultFlavor
|
| 291 | - management:
|
| 292 | node: management
|
| 293 | relationship: tosca.relationships.ConnectsToNetwork
|
| 294 | properties:
|
| 295 | network: noauto
|
| 296 | # default_flavor: m1.xlarge
|
| 297 | #default_node: computeBBU2
|
| 298 |
|
| 299 | mysite_vpgwc_slice1:
|
| 300 | description: vPGWC Service Slice 1
|
| 301 | type: tosca.nodes.Slice
|
| 302 | requirements:
|
| 303 | - vPGWC:
|
| 304 | node: vPGWC
|
| 305 | relationship: tosca.relationships.MemberOfService
|
| 306 | - site:
|
| 307 | node: mysite
|
| 308 | relationship: tosca.relationships.MemberOfSite
|
| 309 | - default_image:
|
| 310 | node: mcord-vpgwc-onos-multi-nic
|
| 311 | relationship: tosca.relationships.DefaultImage
|
| 312 | - default_flavor:
|
| 313 | node: m1.xlarge
|
| 314 | relationship: tosca.relationships.DefaultFlavor
|
| 315 | - management:
|
| 316 | node: management
|
| 317 | relationship: tosca.relationships.ConnectsToNetwork
|
| 318 | properties:
|
| 319 | network: noauto
|
| 320 | #default_node: compute10
|
| 321 |
|
| 322 | mysite_VPGWC_Component:
|
| 323 | description: MCORD Service default Component
|
| 324 | type: tosca.nodes.VPGWCComponent
|
| 325 | requirements:
|
| 326 | - provider_service:
|
| 327 | node: vPGWC
|
| 328 | relationship: tosca.relationships.MemberOfService
|
| 329 | - vpgwc_slice:
|
| 330 | node: mysite_vpgwc_slice1
|
| 331 | relationship: tosca.relationships.MemberOfSlice
|
| 332 | properties:
|
| 333 | display_message: vPGWC looks good!
|
| 334 | s5s8_pgw_tag: 300
|
| 335 |
|