2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 05:47:55 +00:00

1 Commits

Author SHA1 Message Date
Adrián Moreno
93ccf58a91 utilities: upcall_cost: Refactor port mapping cache.
The upcall_cost.py script has a useful port mapping cache that can be
very useful for other scripts.

Move it into a library file (usdt_lib.py). While we're at it, refactor
it into a class since setting attributes to functions and having it
return different types depending on input is not very clean.

This patch should not introduce any functional change.

Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
2025-04-09 10:47:47 +02:00