Open YufengXin opened 3 months ago
We will need to add a method (something like TEManager.restore_vlan_reservations(..)
), and sdx-controller will need to call that after a restart, I think?
will you need a persistent storage for used vlan recovery? should be implemented in MondoDB in sdx-controller? or just local? I think?
If PCE is going to stay a library the way it is today, it should not use a database. It should be up to sdx-controller to restore the previous state. I have not thought much about what sdx-controller would need to store, but I suppose it should be straightforward. This probably is the sensible medium-term plan.
If PCE becomes a stand-alone service, its application logic could use a database.
Next step: make two methods for sdx-controller: get_available_vlans():-> {domain:available_vlans} and set_available_vlans({domain:available_vlans})
six-controller will call and save/pop the info to/from the DB.
Doublecheck: this might be implemented in sdx-controller: needs save the vlan resource use in DB so that it is persistent after sdx-controller restart.