-
Improvement
-
Resolution: Unresolved
-
Medium
-
None
-
None
VPP does not preserve address ranges added by CP, just returns all configured addresses.
So cfg vs operational data differ.
IDs for operational data are artificially created as 0..#addresses range.
The readCurrent attributes uses get on address list,
so in case we read all addresses we have O(n^2).
Fix proposal:
modify dump manager for addresses to create a map.
Aim:
O( n ) and no map creation for single read (we get all the addresses from VPP anyway)
O( n ) for read all using map
The issue might apply to reading other NAT items.