projects
/
osm
/
RO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix SDN: port mapping, switch_id, sdnconn logging
[osm/RO.git]
/
RO
/
osm_ro
/
vim_thread.py
diff --git
a/RO/osm_ro/vim_thread.py
b/RO/osm_ro/vim_thread.py
index
f4849f4
..
d0b8dc9
100644
(file)
--- a/
RO/osm_ro/vim_thread.py
+++ b/
RO/osm_ro/vim_thread.py
@@
-1141,6
+1141,8
@@
class vim_thread(threading.Thread):
ports = self.db.get_rows(FROM='instance_interfaces', WHERE={'instance_wim_net_id': task["item_id"]})
sdn_need_update = False
ports = self.db.get_rows(FROM='instance_interfaces', WHERE={'instance_wim_net_id': task["item_id"]})
sdn_need_update = False
+ if len(ports) != len(connected_ports):
+ sdn_need_update = True
for port in ports:
# TODO. Do not connect if already done
if port.get("compute_node") and port.get("pci"):
for port in ports:
# TODO. Do not connect if already done
if port.get("compute_node") and port.get("pci"):