Currently the output of asmap-tool.py diff returns the total number of addresses that has changed at the end of the list.
Example output currently:
02602:feda:c0::/48 AS1029 # was AS43126
12604:7c00:100::/40 AS29802 # was AS40244
2# 0 IPv4 addresses changed; 79552154633921058212365205504 (2^96.01) IPv6 addresses changed
This is good indicator but in case of a longer list I would like the number of changed entries as well, since that is an easier number to parse and for debugging of certain issues also the more relevant value. This PR adds the count of changed entries to this summary output at the end. There as also a bit more structure so it’s easier to parse as well.
Example new output:
02602:feda:c0::/48 AS1029 # was AS43126
12604:7c00:100::/40 AS29802 # was AS40244
2# Summary
3IPv4: 0 entries with 0 addresses changed
4IPv6: 12 entries with 79552154633921058212365205504 (2^96.01) addresses changed