Esempio n. 1
0
 def set_link_db(self, slice_urn, end_time, links, nodes, sliceVlansPairs):
     self._links_db[slice_urn] = self._create_sliver_from_req_n_and_l(
         end_time, links, nodes)
     db_sync_manager.set_slices(
         slice_urn, {
             "nodes": nodes,
             "links": links,
             "slivers": self._links_db[slice_urn],
             "vlan-pairs": sliceVlansPairs
         })
Esempio n. 2
0
 def set_link_db(self, slice_urn, end_time,links, nodes, sliceVlansPairs):
     self._links_db[slice_urn] = self._create_sliver_from_req_n_and_l(end_time, links, nodes)
     db_sync_manager.set_slices(slice_urn,{"nodes":nodes,"links":links,"slivers":self._links_db[slice_urn],"vlan-pairs":sliceVlansPairs})
Esempio n. 3
0
 def __update_slivers(self, urn, dict_slivers):
     slices = db_sync_manager.get_slices(urn)
     if "slivers" in dict_slivers:
         dict_slivers = dict_slivers["slivers"]
     slices["slivers"].update(dict_slivers)
     db_sync_manager.set_slices(urn, slices)
Esempio n. 4
0
 def __update_slivers(self, urn, dict_slivers):
     slices = db_sync_manager.get_slices(urn)
     if "slivers" in dict_slivers:
         dict_slivers = dict_slivers["slivers"]
     slices["slivers"].update(dict_slivers)
     db_sync_manager.set_slices(urn, slices)