projects
/
osm
/
RO.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1077bbd
)
Fixed bug 1452: Deploy KNF on dummy VIM
03/10703/2
author
lloretgalleg
<illoret@indra.es>
Fri, 23 Apr 2021 11:25:09 +0000
(11:25 +0000)
committer
sousaedu
<eduardo.sousa@canonical.com>
Fri, 23 Apr 2021 14:39:32 +0000
(16:39 +0200)
Change-Id: I21160233b99a1cfe27ec2bbc3ab3005a81160d84
Signed-off-by: lloretgalleg <illoret@indra.es>
RO-plugin/osm_ro_plugin/vim_dummy.py
patch
|
blob
|
history
diff --git
a/RO-plugin/osm_ro_plugin/vim_dummy.py
b/RO-plugin/osm_ro_plugin/vim_dummy.py
index
c00071f
..
fe3a811
100644
(file)
--- a/
RO-plugin/osm_ro_plugin/vim_dummy.py
+++ b/
RO-plugin/osm_ro_plugin/vim_dummy.py
@@
-158,6
+158,11
@@
class VimDummyConnector(vimconn.VimConnector):
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):