2 Deploy a multi-vdu, multi-charm VNF
12 class TestCharm(base
.TestN2VC
):
17 - id: multivdumulticharm-ns
18 name: multivdumulticharm-ns
19 short-name: multivdumulticharm-ns
20 description: NS with 1 VNF connected by datanet and mgmtnet VLs
24 - vnfd-id-ref: multivdumulticharm-vnf
32 vim-network-name: mgmt
33 vnfd-connection-point-ref:
34 - vnfd-id-ref: multivdumulticharm-vnf
35 member-vnf-index-ref: '1'
36 vnfd-connection-point-ref: vnf-mgmt
37 - vnfd-id-ref: multivdumulticharm-vnf
38 member-vnf-index-ref: '2'
39 vnfd-connection-point-ref: vnf-mgmt
44 vnfd-connection-point-ref:
45 - vnfd-id-ref: multivdumulticharm-vnf
46 member-vnf-index-ref: '1'
47 vnfd-connection-point-ref: vnf-data
48 - vnfd-id-ref: multivdumulticharm-vnf
49 member-vnf-index-ref: '2'
50 vnfd-connection-point-ref: vnf-data
56 - id: multivdumulticharm-vnf
57 name: multivdumulticharm-vnf
58 short-name: multivdumulticharm-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
113 initial-config-primitive:
130 external-connection-point-ref: vnf-mgmt
136 internal-connection-point-ref: dataVM-internal
137 internal-connection-point:
138 - id: dataVM-internal
139 name: dataVM-internal
140 short-name: dataVM-internal
142 cloud-init-file: cloud-config.txt
147 # Relation needs to map to the vdu providing or
148 # requiring, so that we can map to the deployed app.
150 - provides: dataVM:db
152 initial-config-primitive:
158 # @pytest.mark.serial
160 async def test_multivdu_multicharm(self
, event_loop
):
161 """Deploy and execute the initial-config-primitive of a VNF."""
163 if self
.nsd
and self
.vnfd
:
166 for config
in self
.get_config():
167 juju
= config
['juju']
168 charm
= juju
['charm']
178 while await self
.running():
179 logging
.debug("Waiting for test to finish...")
180 await asyncio
.sleep(15)
182 logging
.debug("test_multivdu_multicharm stopped")