projects
/
osm
/
RO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removing networking-l2gw as a dependency
[osm/RO.git]
/
RO-plugin
/
osm_ro_plugin
/
vim_dummy.py
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)
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):
return nets
def get_network(self, net_id):