You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is caused when we perform a new image installation (through ONIE), once the image is installed if ZTP is enabled and the /etc/sonic/config_db.json is absent in the image, the config-setup generates ztp_config.json
This issue is caused when we perform a new image installation (through ONIE), once the image is installed if ZTP is enabled and the
/etc/sonic/config_db.json
is absent in the image, the config-setup generates ztp_config.jsonsonic-buildimage/files/image_config/config-setup/config-setup
Line 269 in 39e2131
sonic-buildimage/files/image_config/config-setup/config-setup
Line 213 in 39e2131
This configuration contains the ZTP key
https://github.com/sonic-net/sonic-ztp/blob/b4cdd8c58bc419f37b91e783b357bff4c5174536/src/usr/lib/ztp/templates/ztp-config.j2#L41
Once this config is added and we perform config reload with this:
sonic-buildimage/files/image_config/config-setup/config-setup
Line 270 in 39e2131
The config reload calls db_migrator which has the config_validator
https://github.com/sonic-net/sonic-utilities/blob/3aec51927b06fd8cce2d71adec0ec5ad7f2abf53/scripts/db_migrator.py#L1317
https://github.com/sonic-net/sonic-utilities/blob/a5b7a904663a14b781a864f7354065fbec767fe1/scripts/config_validator.py#L39
Which causes the log error:
2025 Jan 14 19:20:26.658286 sonic ERR config_validator.py: Tables without yang models: {'ZTP': {'mode': {'inband': 'true', 'ipv4': 'true', 'ipv6': 'true', 'out-of-band': 'true', 'product-name': 'XXXX', 'profile': 'active', 'serial-no': 'XXXXXXXXXXX'}}}
Steps to Reproduce
ENABLE_ZTP=y
ztp status -c
The text was updated successfully, but these errors were encountered: