aboutsummaryrefslogtreecommitdiffstats
path: root/samples/service.yaml
blob: 8472f1b7b8d4af3c50a9fea4e401a1ee9a970ab4 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Service sample
# Using that file you will create SDC Services both with custom properties and not.
# * sample-service-with-vf is a simple service with VF resource
# * sample-service-with-vf-and-properties is a service with VF resource and
#   it's properties - it's ready to create service instance using Macro flow
# * sample-service-with-pnf is a simple service with PNF resource
# * sample-service-with-pnf-and-properties is a service with PNF resource and
#   it's properties - it's ready to create service instance using Macro flow
# * sample-service-with-vl is a simple service with VL resource
# Make sure that resources you want to use are already created. If not - use `xnfs.yaml`
# sample file and create needed xNFs.
#
odpSchemaVersion: 1.0
resources:
  services:
    - service:
        name: sample-service-with-vf
        resources:
          - name: sample-vnf # Make sure it exists!
            type: VF
    - service:
        name: sample-service-with-vf-and-properties
        resources:
          - name: sample-vnf # Make sure it exists!
            type: VF
            properties:
              - name: controller_actor
                type: string
                value: "CDS"
              - name: skip_post_instantiation_configuration
                type: boolean
                value: False
              - name: sdnc_artifact_name
                type: string
                value: "vnf"
              - name: sdnc_model_version
                type: string
                value: "1.0.0"
              - name: sdnc_model_name
                type: string
                value: "ubuntu20"
    - service:
        name: sample-service-with-pnf
        resources:
          - name: sample-pnf # Make sure it exists!
            type: PNF
    - service:
        name: sample-service-with-pnf-and-properties
        resources:
          - name: sample-pnf # Make sure it exists!
            type: PNF
            properties:
              - name: controller_actor
                type: string
                value: "CDS"
              - name: skip_post_instantiation_configuration
                type: boolean
                value: False
              - name: sdnc_artifact_name
                type: string
                value: "vnf"
              - name: sdnc_model_version
                type: string
                value: "1.0.0"
              - name: sdnc_model_name
                type: string
                value: "ubuntu20"
    - service:
        name: sample-service-with-vl
        resources:
          - name: sample-vl # Make sure it exists!
            type: VL

    - service:
        name: test-nested-inputs-service-1
        category: Network L4+
        description: LFN demo service
        instantiation-type: Macro
        resources:
          - name: test-ar-pnf
            type: PNF
        inputs:
          - resource-property: true
            resource: test-ar-pnf
            name: resource-property-name
            value: test