atlanticwave-sdx / pce

Path Computation Element for AtlanticWave SDX.
https://www.atlanticwave-sdx.net
0 stars 3 forks source link

Update port node map when topology is updated rather than only when topology is added #212

Closed italovalcy closed 3 months ago

italovalcy commented 3 months ago

Currently, the TopologyManager._port_node_map is only being updated when the topology is added:

https://github.com/atlanticwave-sdx/pce/blob/5f40e1be447bc3535243a8acca0729f752aa164e/src/sdx_pce/topology/manager.py#L141-L144

This way, if a node is added later on to the OXP, or a new port is added, the SDX-Controller wont keep track of that updated object. Ultimately, the _port_node_map is used to add interdomain links and also by TEManager._update_vlan_tags_table.