Hi all,
i’m trying to migrate a working 1.3 config to 1.4 but i get the following error when some IPv6 are added to firewall, interfaces or protocol (example bgp and static) sections:
Traceback (most recent call last):
File “/usr/bin/config-mgmt”, line 33, in
sys.exit(load_entry_point(‘vyos==1.3.0’, ‘console_scripts’, ‘config-mgmt’)())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/vyos/config_mgmt.py”, line 608, in run
config_mgmt = ConfigMgmt()
^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/vyos/config_mgmt.py”, line 70, in init
config = Config()
^^^^^^^^
File “/usr/lib/python3/dist-packages/vyos/config.py”, line 85, in init
self._config_source = ConfigSourceSession(session_env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/vyos/configsource.py”, line 145, in init
self._session_config = ConfigTree(session_config_text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/vyos/configtree.py”, line 143, in init
raise ValueError(“Failed to parse config: {0}”.format(msg))
ValueError: Failed to parse config: internal indexing error
I have no coding abilities for debugging python, so i generated a custom ISO with python3 packages from bullseye (3.9.2) instead of bookworm (3.11.2) but the problem remains.
Sometimes the configuration is working removing some sections, sometimes i add a new acl rule with a IPv6 address or a new IPv6 BGP peer or a blackhole/static route6 and i get the traceback.
Any clues?
oTo