fix: consideration of vim driver name
@@ -47,8 +47,15 @@ public class NfvoGsonDeserializerVimInstance implements JsonDeserializer<BaseVim
JsonElement json, Type typeOfT, JsonDeserializationContext context)
throws JsonParseException {
String type = json.getAsJsonObject().get("type").getAsString();
+ String name = null;
BaseVimInstance result;
try {
+ String[] typeAndName = type.split("\\.");
+ if (typeAndName.length > 1) {
+ type = typeAndName[0];
+ name = typeAndName[1];
+ log.debug("Type contains name: " + name);
+ }
String className =
"org.openbaton.catalogue.nfvo.viminstances."
+ type.substring(0, 1).toUpperCase()
