summaryrefslogtreecommitdiffstats
path: root/samples/xnfs.yaml
blob: 805a2c1ccfb5bc98333e896cc8c058fe308bc870 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# VNFs and PNFs sample.
# In that sample we don't create any additional resources - just xNFs. Make
# sure that VSP you want to use already exists or use sample from `vsp.yaml`
# file and create it.
# It will also use "BASIC_VM_enriched.zip" package as an xNF artifact.
# Remember: package value is a path, it has to point to the file from the `onap-data-provider` runner perspective.
# I recommend to use absulute path to be sure there will be no errors.

odpSchemaVersion: 1.0
resources:
  vnfs:
    - vnf:
        name: sample-vnf-without-artifact
        vsp: sample-vsp # Make sure it exists!
    - vnf:
        name: sample-vnf-with-artifact
        vsp: sample-vsp # Make sure it exists!
        deployment_artifact:
          artifact_type: CONTROLLER_BLUEPRINT_ARCHIVE
          artifact_name: BASIC_VM_enriched.zip
          artifact_label: vfwcds
          artifact_file_name: BASIC_VM_enriched.zip
    - vnf:
        name: allotted-resource-vf
        vendor: sample-vendor # Make sure it exists!
        category: Allotted Resource
        subcategory: Allotted Resource
    - vnf:
        name: sample-vnf-with-vfc-as-property
        vsp: sample-vsp # Make sure it exists!
        resources:
          - xnf_type: "VFC"
            name: "AllottedResource"

  pnfs:
    - pnf:
        name: sample-pnf-without-artifact
        vsp: sample-vsp # Make sure it exists!
    - pnf:
        name: sample-pnf-with-artifact
        vsp: sample-vsp # Make sure it exists!
        deployment_artifact:
          artifact_type: CONTROLLER_BLUEPRINT_ARCHIVE
          artifact_name: BASIC_VM_enriched.zip
          artifact_label: vfwcds
          artifact_file_name: BASIC_VM_enriched.zip