- for net in nets:
- r1,c1 = config_dic['of_thread'].insert_task("update-net", net)
- if r1 < 0:
- print ' http_post_server_action error at server deletion ERROR UPDATING NETS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' + c1
- data={'result' : 'deleting in process, but openflow rules cannot be deleted!!!!!'}
- #look for dhcp ip address
+ for net_id in nets:
+ try:
+ my.ovim.net_update_ofc_thread(net_id)
+ except ovim.ovimException as e:
+ raise ovim.ovimException("http_post_servers, Error updating network with id '{}', '{}'".
+ format(net_id, str(e)), HTTP_Internal_Server_Error)
+ except Exception as e:
+ raise ovim.ovimException("http_post_server_action error at server deletion "
+ "ERROR UPDATING NET '{}', '{}'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!".
+ format(net_id, str(e)), HTTP_Internal_Server_Error)
+
+ data = {'result': 'deleting in process, but openflow rules cannot be deleted!!!!!'}
+
+ # look for dhcp ip address