Hello,
I am using IPDB APIs to synch between system configuration and my configuration DB. So far it was working fine.
Suddenly one strange issue started appearing.
ISSUE: IPDB fails to retrieve complete routing information. it is consistent once the problem start appearing.
Below is the IPDB dump:
>>> ipdb.routes.tables[123]
[{'metrics': {}, 'oif': 4, 'dst_len': 0, 'family': 10, 'proto': 4, 'tos': 0, 'dst': 'default', 'flags': 0, 'ipdb_priority': 0, 'priority': 2, 'scope': 0, 'encap': {}, 'src_len': 0, 'table': 123, 'multipath': [], 'type': 1, 'gateway': 'fd00::1', 'ipdb_scope': 'system'}, {'metrics': {}, 'oif': 4, 'dst_len': 24, 'family': 2, 'proto': 4, 'tos': 0, 'dst': '
45.45.44.0/24', 'flags': 0, 'ipdb_priority': 0, 'priority': 3, 'scope': 0, 'encap': {}, 'src_len': 0, 'table': 123, 'multipath': [], 'type': 1, 'gateway': '45.45.45.1', 'ipdb_scope': 'system'}, {'metrics': {}, 'oif': 4, 'dst_len': 64, 'family': 10, 'proto': 4, 'tos': 0, 'dst': 'fd01::/64', 'flags': 0, 'ipdb_priority': 0, 'priority': 2, 'scope': 0, 'encap': {}, 'src_len': 0, 'table': 123, 'multipath': [], 'type': 1, 'gateway': 'fd00::1', 'ipdb_scope': 'system'}]
Below is the IPRoute dump:>>> ip.route('dump',table=123)
[
{'family': 2, 'dst_len': 0, 'proto': 4, 'tos': 0, 'event': 'RTM_NEWROUTE', 'header': {'pid': 4294962720, 'length': 60, 'flags': 2, 'error': None, 'type': 24, 'sequence_number': 259}, 'flags': 0, 'attrs': [('RTA_TABLE', 123), ('RTA_PRIORITY', 6), ('RTA_GATEWAY', '45.45.45.1'), ('RTA_OIF', 4)], 'table': 123, 'src_len': 0, 'type': 1, 'scope': 0}, {'family': 2, 'dst_len': 24, 'proto': 4, 'tos': 0, 'event': 'RTM_NEWROUTE', 'header': {'pid': 4294962720, 'length': 68, 'flags': 2, 'error': None, 'type': 24, 'sequence_number': 259}, 'flags': 0, 'attrs': [('RTA_TABLE', 123), ('RTA_DST', '45.45.44.0'), ('RTA_PRIORITY', 3), ('RTA_GATEWAY', '45.45.45.1'), ('RTA_OIF', 4)], 'table': 123, 'src_len': 0, 'type': 1, 'scope': 0}]
System configuration:>> ip r l t 123
default via 45.45.45.1 dev offload proto static metric 6 45.45.44.0/24 via 45.45.45.1 dev offload proto static metric 3
As shown above, the highlighted route is being displayed in IPRoute dump and system ip command dump.
However it is not present in the IPDB dump.
Any idea why is such discrepancy in the IPDB behavior?