summaryrefslogtreecommitdiffstats
path: root/config/sdncgenericresource.spec
blob: 518b5570a68eaa1aadea65219732a6a79a2f64d9 (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[
  // Use https://jolt-demo.appspot.com/#inception to develop/test
  // any changes to this file

  {
    // This section converts the GENERIC-RESOURCES-API response from sdnc
    // to org.onap.pomba.common.datatypes.ModelContext
    "operation": "shift",
    "spec": {
      "service": {
        "*": {
          "service-data": {
            "service-topology": {
              "service-topology-identifier": {
                "service-instance-id": "service.uuid",
                "service-instance-name": "service.name"
              },
              "onap-model-information": {
                "model-invariant-uuid": "service.invariantUUID"
              }
            },
            "vnfs": {
              "vnf": {
                "*": {
                  "vnf-data": {
                    "vnf-topology": {
                      "onap-model-information": {
                        "model-uuid": "vnfList[&4].uuid",
                        "model-invariant-uuid": "vnfList[&4].invariantUUID"
                      },
                      "vnf-topology-identifier-structure": {
                        "vnf-type": "vnfList[&4].type",
                        "vnf-name": "vnfList[&4].name"
                      },
                      "vnf-resource-assignments": {
                        "vnf-networks": {
                          "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"
                            }
                          }
                        }
                      }
                    },
                    "vf-modules": {
                      "vf-module": {
                        "*": {
                          "vf-module-data": {
                            "vf-module-topology": {
                              "vf-module-topology-identifier": {
                                "vf-module-name": "vnfList[&8].vfModuleList[&4].name"
                              },
                              "onap-model-information": {
                                "model-uuid": "vnfList[&8].vfModuleList[&4].uuid",
                                "model-invariant-uuid": "vnfList[&8].vfModuleList[&4].invariantUUID"
                              },
                              "vf-module-assignments": {
                                "vms": {
                                  "vm": {
                                    "*": {
                                      "vm-names": {
                                        "vm-name": {
                                          "*": {
                                            "@": "vnfList[&14].vfModuleList[&10].vmList[&1].name",
                                            "@(3,vm-type)": "vnfList[&14].vfModuleList[&10].vmList[&1].nfNamingCode",
                                            "@(3,inMaint)": {
                                              "#lockedBoolean": "vnfList[&15].vfModuleList[&11].vmList[&2].attributeList[0].name",
                                              "yes": {
                                                "#true": "vnfList[&16].vfModuleList[&12].vmList[&3].attributeList[0].value"
                                              },
                                              "no": {
                                                "#false": "vnfList[&16].vfModuleList[&12].vmList[&3].attributeList[0].value"
                                              }
                                            },
                                            "@(3,prov-status)": {
                                              "#provStatus": "vnfList[&15].vfModuleList[&11].vmList[&2].attributeList[1].name",
                                              "@(4,prov-status)": "vnfList[&15].vfModuleList[&11].vmList[&2].attributeList[1].value"
                                            },
                                            "@(3,pserver)": {
                                              "#hostName": "vnfList[&15].vfModuleList[&11].vmList[&2].attributeList[2].name",
                                              "hostname": "vnfList[&15].vfModuleList[&11].vmList[&2].attributeList[2].value"
                                            },
                                            "@(3,image)": {
                                              "#imageId": "vnfList[&15].vfModuleList[&11].vmList[&2].attributeList[3].name",
                                              "image-name": "vnfList[&15].vfModuleList[&11].vmList[&2].attributeList[3].value"
                                            }
                                          }
                                        }
                                      },
                                      "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"
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "vm-networks": {
                                    "*": {
                                      "network-id": "vnfList[&11].vfModuleList[&7].networkList[&1].uuid",
                                      "network-name": "vnfList[&11].vfModuleList[&7].networkList[&1].name",
                                      "#networkRole": "vnfList[&11].vfModuleList[&7].networkList[&1].attributeList[0].name",
                                      "network-role": "vnfList[&11].vfModuleList[&7].networkList[&1].attributeList[0].value"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "networks": {
              "network": {
                "*": {
                  "network-data": {
                    "network-topology": {
                      "network-topology-identifier-structure": {
                        "network-name": "networkList[&4].name",
                        "network-id": "networkList[&4].uuid",
                        "#networkRole": "networkList[&4].attributeList[0].name",
                        "network-role": "networkList[&4].attributeList[0].value",
                        "#networkType": "networkList[&4].attributeList[1].name",
                        "network-type": "networkList[&4].attributeList[1].value",
                        "#networkTechnology": "networkList[&4].attributeList[2].name",
                        "network-technology": "networkList[&4].attributeList[2].value"
                      },
                      "onap-model-information": {
                        "model-invariant-uuid": "networkList[&4].invariantUUID"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  ]