Bug "source and destination lists must be unique, got src:" occurs sometimes
Sometimes we get an error while merging two models in the "UpdateModel" function.
One example:
[source and destination lists must be unique, got src: [systemd.setenv=MGMT_INTF=eth0 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=INTFTYPE=eth systemd.setenv=MAPETH0=1], dst: [systemd.setenv=MGMT_INTF=eth0 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=INTFTYPE=eth systemd.setenv=MAPETH0=1 systemd.setenv=MAPETH0=1 systemd.setenv=MGMT_INTF=eth0 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=INTFTYPE=eth]]
For some reason destination (the model of the network element which should be saved to the database) has some data doubled. This seems to happen on the running program, as it is not doubled in the database.
The issue happens for the following topology and sdn_config, which can be read via the venv-manager to trigger this error. sts_demo.yaml sts_sdn_config_changed.json