While upgrading SRX4100 from 19.4 to 20.4, with "validate" keyword in "request system software add /var/tmp/<image-name>", the validation fails with below error message
syntax error at 'lldp' [edit protocols] 'lldp {' syntax error /config/juniper.conf:2031:(5) error recovery ignores input until this point at '}' [edit protocols] '}' error recovery ignores input until this point [edit] 'protocols' warning: statement has no contents; ignored Validation failed Validating against /config/rescue.conf.gz mgd: commit complete Validation succeeded mdconfig: file can only be used with -a mdconfig: file can only be used with -a umount: unmount of /.mount/var/val/chroot/packages/mnt/jweb-srxtvp32-93430dd5 failed: Device busy ERROR: Current configuration not compatible with junos-srxmr-x86-64-20.4R2.7.tgz
> show configuration protocols lldp
{ /* 23.5.2022 alexkrse PW293347 */ interface all { disable; } }
"syntax error at 'lldp' [edit protocols] 'lldp {' syntax error /config/juniper.conf:2031:(5) error recovery ignores input until this point at '}' [edit protocols] '}' error recovery ignores input until this point [edit] 'protocols' warning: statement has no contents; ignored Validation failed Validating against /config/rescue.conf.gz mgd: commit complete Validation succeeded mdconfig: file can only be used with -a mdconfig: file can only be used with -a umount: unmount of /.mount/var/val/chroot/packages/mnt/jweb-srxtvp32-93430dd5 failed: Device busy ERROR: Current configuration not compatible with junos-srxmr-x86-64-20.4R2.7.tgz"
If we perform validate while upgrading the SRX to 20.4 with lldp feature configured on the SRX, the validation will fail as LLDP is not supported and qualified in SRX4100 devices till 21.1 release.
The details regarding the feature support is available in path finder link shared below:
The feature is only introduced in Junos OS 21.1R1 for SRX4100 and hence the error when you perform the validation of configuration across the upgrade to 20.4
Reference link: https://apps.juniper.net/feature-explorer/feature/19?fn=LLDP
However, the configuration would work but during upgrade and validation, the validation would fail.