diff --git a/agent_based/ospfv3_interface.py b/agent_based/ospfv3_interface.py index 101ddc6ea9c331b67710f12c4123397aaa562428..7c602d5e1ce4f5e9b8d55707de7b4a948a7de5f7 100644 --- a/agent_based/ospfv3_interface.py +++ b/agent_based/ospfv3_interface.py @@ -151,7 +151,7 @@ def parse_ospfv3_interface(string_table: List[StringTable]) -> Optional[Dict[str ospf_if_index, ospf_if_inst_id = oid_end.split('.') - local_interface = get_short_if_name(interfaces_by_index.get(ospf_if_index, ospf_if_index)) + local_interface = get_short_if_name(interfaces_by_index.get(ospf_if_index, f'Index {ospf_if_index}')) ospf_interfaces[local_interface] = OspfV3Interface( IfAreaId=int(area_id), diff --git a/agent_based/ospfv3_neighbor.py b/agent_based/ospfv3_neighbor.py index 5aec8d910915abdf658bf5bb55a713db8533099c..110d8dc1b2e5af0f970200eb015f4298d17a0317 100644 --- a/agent_based/ospfv3_neighbor.py +++ b/agent_based/ospfv3_neighbor.py @@ -130,7 +130,7 @@ def parse_ospfv3_neighbor(string_table: List[StringTable]) -> Dict[str, OspfV3Ne address = render_ipv6_address(address) nbr_if_index, nbr_if_inst_id, nbr_rtr_id = oid_end.split('.') - nbr_local_interface = get_short_if_name(interfaces_by_index.get(nbr_if_index, nbr_if_index)) + nbr_local_interface = get_short_if_name(interfaces_by_index.get(nbr_if_index, f'Index {nbr_if_index}')) neighbors[f'{address} on {nbr_local_interface}'] = OspfV3Neighbor( nbrRtrId=render_ipv4_neighbor_id(nbr_rtr_id), diff --git a/agent_based/ospfv3_virtuallink.py b/agent_based/ospfv3_virtuallink.py index f4335a75cdd14dcdbe7fe2af9a42c65e98887df4..4a372b901687459af93edc44dd5e942a9e13d239 100644 --- a/agent_based/ospfv3_virtuallink.py +++ b/agent_based/ospfv3_virtuallink.py @@ -131,7 +131,7 @@ def parse_ospfv3_virtuallink(string_table: List[StringTable]) -> Dict[str, OspfV address = render_ipv6_address(address) area, nbr_id = oid_end.split('.') - nbr_local_interface = get_short_if_name(interfaces_by_index.get(if_index, if_index)) + nbr_local_interface = get_short_if_name(interfaces_by_index.get(if_index, f'Index {if_index}')) virtual_links[address] = OspfV3VirtualLink( VirtNbrId=render_ipv4_neighbor_id(nbr_id), diff --git a/mkp/ospfv3-0.4.0-20231221.mkp b/mkp/ospfv3-0.4.0-20231221.mkp index 1367d5db1f99f564f170a7d0de7d422980dc1b08..2c625df5adf3544dae83d25ef95c78d0714c2c58 100644 Binary files a/mkp/ospfv3-0.4.0-20231221.mkp and b/mkp/ospfv3-0.4.0-20231221.mkp differ