Unable to insert IPv6 default route. However, no issue with IPv4 default route. ``` ...: from mmdb_writer import MMDBWriter ...: from netaddr import IPSet, IPNetwork ...: ...: ...: writer = MMDBWriter( ip_version=6, ipv4_compatible=True) ...: writer.insert_network( IPSet(IPNetwork("0.0.0.0/0")), { "autonomous_system_number": 123, "autonomous_system_organization": "test"},) ...: writer.insert_network( IPSet(IPNetwork("::/0")), { "autonomous_system_number": 123, "autonomous_system_organization": "test"},) ...: ...: ...: --------------------------------------------------------------------------- IndexError Traceback (most recent call last) Cell In[2], line 9 7 writer = MMDBWriter( ip_version=6, ipv4_compatible=True) 8 writer.insert_network( IPSet(IPNetwork("0.0.0.0/0")), { "autonomous_system_number": 123, "autonomous_system_organization": "test"},) ----> 9 writer.insert_network( IPSet(IPNetwork("::/0")), { "autonomous_system_number": 123, "autonomous_system_organization": "test"},) File ~/.local/lib/python3.12/site-packages/mmdb_writer.py:446, in MMDBWriter.insert_network(self, network, content) 444 # Insert supernet information on each inverse bit of the current subnet 445 current_node[1 - next_bit] = supernet_leaf --> 446 current_node[bits[-1]] = leaf IndexError: list index out of range ```
Activity