-
- if vim and vim["type"] == "openstack":
- if vim["version"] == "kilo":
- multivimdriver = "multicloud-kilo"
- elif vim["version"] == "newton":
- multivimdriver = "multicloud-newton"
- else:
- # if vim type is openstack, use latest "newton" version as default
- multivimdriver = "multicloud-newton"
- elif vim and vim["type"] == "vmware":
- multivimdriver = "multicloud-vio"
- else:
+ json_file = os.path.join(os.path.dirname(__file__),
+ '../config/provider-plugin.json')
+ with open(json_file, "r") as f:
+ plugins = json.load(f)
+ if not vim or vim.get("type") not in plugins.keys():