2 Deploy a multi-vdu, multi-charm VNF
12 class TestCharm(base
.TestN2VC
):
17 - id: hackfest-simplecharm-ns
18 name: hackfest-simplecharm-ns
19 short-name: hackfest-simplecharm-ns
20 description: NS with 2 VNFs hackfest-simplecharm-vnf connected by datanet and mgmtnet VLs
24 - vnfd-id-ref: hackfest-simplecharm-vnf
26 - vnfd-id-ref: hackfest-simplecharm-vnf
34 vim-network-name: mgmt
35 vnfd-connection-point-ref:
36 - vnfd-id-ref: hackfest-simplecharm-vnf
37 member-vnf-index-ref: '1'
38 vnfd-connection-point-ref: vnf-mgmt
39 - vnfd-id-ref: hackfest-simplecharm-vnf
40 member-vnf-index-ref: '2'
41 vnfd-connection-point-ref: vnf-mgmt
46 vnfd-connection-point-ref:
47 - vnfd-id-ref: hackfest-simplecharm-vnf
48 member-vnf-index-ref: '1'
49 vnfd-connection-point-ref: vnf-data
50 - vnfd-id-ref: hackfest-simplecharm-vnf
51 member-vnf-index-ref: '2'
52 vnfd-connection-point-ref: vnf-data
58 - id: hackfest-simplecharm-vnf
59 name: hackfest-simplecharm-vnf
60 short-name: hackfest-simplecharm-vnf
62 description: A VNF consisting of 2 VDUs connected to an internal VL, and one VDU with cloud-init
80 internal-connection-point:
81 - id-ref: mgmtVM-internal
82 - id-ref: dataVM-internal
98 external-connection-point-ref: vnf-mgmt
104 internal-connection-point-ref: mgmtVM-internal
105 internal-connection-point:
106 - id: mgmtVM-internal
107 name: mgmtVM-internal
108 short-name: mgmtVM-internal
110 cloud-init-file: cloud-config.txt
113 image: hackfest3-mgmt
125 internal-connection-point-ref: dataVM-internal
131 external-connection-point-ref: vnf-data
132 internal-connection-point:
133 - id: dataVM-internal
134 name: dataVM-internal
135 short-name: dataVM-internal
140 initial-config-primitive:
154 value: '/home/ubuntu/first-touch'
160 default-value: '/home/ubuntu/touched'
163 # @pytest.mark.serial
165 async def test_multivdu_multicharm(self
, event_loop
):
166 """Deploy and execute the initial-config-primitive of a VNF."""
168 if self
.nsd
and self
.vnfd
:
171 for config
in self
.get_config():
172 juju
= config
['juju']
173 charm
= juju
['charm']
183 while await self
.running():
184 logging
.debug("Waiting for test to finish...")
185 await asyncio
.sleep(15)
187 logging
.debug("test_multivdu_multicharm stopped")