2 Deploy a multi-vdu, multi-charm VNF
12 class TestCharm(base
.TestN2VC
):
17 - id: multivdurelate-ns
18 name: multivdurelate-ns
19 short-name: multivdurelate-ns
20 description: NS with 1 VNF connected by datanet and mgmtnet VLs
24 - vnfd-id-ref: multivdurelate-vnf
32 vim-network-name: mgmt
33 vnfd-connection-point-ref:
34 - vnfd-id-ref: multivdurelate-vnf
35 member-vnf-index-ref: '1'
36 vnfd-connection-point-ref: vnf-mgmt
37 - vnfd-id-ref: multivdurelate-vnf
38 member-vnf-index-ref: '2'
39 vnfd-connection-point-ref: vnf-mgmt
44 vnfd-connection-point-ref:
45 - vnfd-id-ref: multivdurelate-vnf
46 member-vnf-index-ref: '1'
47 vnfd-connection-point-ref: vnf-data
48 - vnfd-id-ref: multivdurelate-vnf
49 member-vnf-index-ref: '2'
50 vnfd-connection-point-ref: vnf-data
56 - id: multivdurelate-vnf
57 name: multivdurelate-vnf
58 short-name: multivdurelate-vnf
60 description: A VNF consisting of 1 VDUs w/proxy charm
78 internal-connection-point:
79 - id-ref: mgmtVM-internal
80 - id-ref: dataVM-internal
96 external-connection-point-ref: vnf-mgmt
102 internal-connection-point-ref: mgmtVM-internal
103 internal-connection-point:
104 - id: mgmtVM-internal
105 name: mgmtVM-internal
106 short-name: mgmtVM-internal
108 cloud-init-file: cloud-config.txt
114 # Relation needs to map to the vdu providing or
115 # requiring, so that we can map to the deployed app.
117 - provides: dataVM:db
119 initial-config-primitive:
136 external-connection-point-ref: vnf-mgmt
142 internal-connection-point-ref: dataVM-internal
143 internal-connection-point:
144 - id: dataVM-internal
145 name: dataVM-internal
146 short-name: dataVM-internal
148 cloud-init-file: cloud-config.txt
153 initial-config-primitive:
159 # @pytest.mark.serial
161 async def test_multivdu_relate(self
, event_loop
):
162 """Deploy and execute the initial-config-primitive of a VNF."""
164 if self
.nsd
and self
.vnfd
:
167 for config
in self
.get_config():
168 juju
= config
['juju']
169 charm
= juju
['charm']
179 while await self
.running():
180 logging
.debug("Waiting for test to finish...")
181 await asyncio
.sleep(15)
184 logging
.debug("test_multivdu_relate stopped")