Implements a Dummy vim plugin.
"""
-import yaml
-from osm_ro_plugin import vimconn
-from uuid import uuid4
from copy import deepcopy
import logging
from random import randrange
+from uuid import uuid4
+
+from osm_ro_plugin import vimconn
+import yaml
+
__author__ = "Alfonso Tierno"
__date__ = "2020-04-20"
nets.append(net)
+ # if no network is returned and search by name create a new one
+ if not nets and filter_dict and filter_dict.get("name"):
+ net_id, net = self.new_network(filter_dict.get("name"), "mgmt")
+ nets.append(net)
+
return nets
def get_network(self, net_id):
start,
image_id,
flavor_id,
+ affinity_group_list,
net_list,
cloud_config=None,
disk_list=None,