DHCP relay configuration on legacy devices such EX4200 was originally configured under "forwarding-options helpers":
forwarding-options { storm-control-profiles default { all; } helpers { ## ## Warning: configuration block ignored: unsupported platform (ex3400-48p) ## bootp { interface
New ELS devices do not support bootp configuration. Instead, DHCP relay is set using "forwarding-options dhcp-relay"
More information: https://supportportal.juniper.net/s/article/How-to-configure-DHCP-relay-for-EX-QFX-switches-running-Junos-ELS?language=en_US
In case ELS switches show any commit error due to unsupported blocks, please remove the incorrect lines or configure them with the new style. For more information on Legacy Vs ELS settings, please refer to :
https://www.juniper.net/documentation/us/en/software/junos/multicast-l2/topics/topic-map/layer-2-understanding.html#id-using-the-enhanced-layer-2-software-cli