summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTait,Trevor(rt0435) <rtait@amdocs.com>2019-03-13 16:33:46 -0400
committerTait,Trevor(rt0435) <rtait@amdocs.com>2019-03-13 16:34:07 -0400
commit204ee2d452ff3f33db0a8bd7ff799e36fed1d0d7 (patch)
tree18eb97909d9a540633f35fbccfa66ba482a5f1c7
parent716a57bba582e045986de3bdd354baefcf567b21 (diff)
SDNCctxtbuilder unable to populate all networks
Issue-ID: LOG-987 Change-Id: I8e4bd6e9bd3ee477b91fa672da6d83a4ef8f259f Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
-rw-r--r--config/sdncgenericresource.spec22
-rw-r--r--src/test/resources/junit/sdncGenericResponse.json18
2 files changed, 34 insertions, 6 deletions
diff --git a/config/sdncgenericresource.spec b/config/sdncgenericresource.spec
index 7a1ffc1..518b557 100644
--- a/config/sdncgenericresource.spec
+++ b/config/sdncgenericresource.spec
@@ -34,11 +34,13 @@
},
"vnf-resource-assignments": {
"vnf-networks": {
- "*": {
- "network-name": "vnfList[&6].networkList[&1].name",
- "network-id": "vnfList[&6].networkList[&1].uuid",
- "#networkRole": "vnfList[&6].networkList[&1].attributeList[0].name",
- "network-role": "vnfList[&6].networkList[&1].attributeList[0].value"
+ "vnf-network": {
+ "*": {
+ "network-name": "vnfList[&7].networkList[&1].name",
+ "network-id": "vnfList[&7].networkList[&1].uuid",
+ "#networkRole": "vnfList[&7].networkList[&1].attributeList[0].name",
+ "network-role": "vnfList[&7].networkList[&1].attributeList[0].value"
+ }
}
}
}
@@ -87,6 +89,16 @@
}
}
}
+ },
+ "vm-networks": {
+ "vm-network": {
+ "*": {
+ "network-id": "vnfList[&14].vfModuleList[&10].networkList[&1].uuid",
+ "network-name": "vnfList[&14].vfModuleList[&10].networkList[&1].name",
+ "#networkRole": "vnfList[&14].vfModuleList[&10].networkList[&1].attributeList[0].name",
+ "network-role": "vnfList[&14].vfModuleList[&10].networkList[&1].attributeList[0].value"
+ }
+ }
}
}
},
diff --git a/src/test/resources/junit/sdncGenericResponse.json b/src/test/resources/junit/sdncGenericResponse.json
index 096c71e..9f556e5 100644
--- a/src/test/resources/junit/sdncGenericResponse.json
+++ b/src/test/resources/junit/sdncGenericResponse.json
@@ -1,7 +1,7 @@
{
"service": [
{
- "service-instance-id": "PombaDemoCust_001-SerivceInst-001",
+ "service-instance-id": "PombaDemoCust_001-ServiceInst-001",
"service-status": {
"final-indicator": "Y",
"rpc-action": "assign",
@@ -243,6 +243,13 @@
"vm": [
{
"vm-type": "vgw",
+ "vm-networks": {
+ "vm-network": [
+ {
+ "network-role": "vf-module-network-test"
+ }
+ ]
+ },
"vm-count": 1,
"vm-type-tag": "vgw",
"vm-names": {
@@ -360,6 +367,15 @@
"vnf-name": "zRegionOne06"
},
"vnf-resource-assignments": {
+ "vnf-networks": {
+ "vnf-network": [
+ {
+ "network-role": "trusted",
+ "network-name": "vnf-network-test",
+ "network-id": "bf2a200d-744f-4900-afc4-d5ef44638853"
+ }
+ ]
+ },
"availability-zones": {
"availability-zone": [
"nova"