This article gives the reason for the warning that is displayed when a commit is issued on any configuration changes on SRX1500 devices after an upgrade and suggests a workaround to prevent the warning.
After a Junos OS upgrade to release 15.1X49-D100 or later, when a commit is issued on the following configuration:
user@srx# show protocols l2-learning { global-mode switching; }
The following warning message is seen:
warning: L2 global mode is switching mode, please add an interface in ethernet-switching mode, or change the L2 global mode!
This warning message does not appear on Junos OS releases prior to 15.1X49-D100.
As explained in global-mode (Protocols) , the default mode is switching on branch devices that run Junos OS release 15.1X49-D100 and later.
Starting with Junos OS release 15.1X49-D100, on SRX300, SRX320, SRX340, SRX345, SRX550, and SRX550M devices, the default Layer 2 global mode configuration is changed from transparent-bridge to switching mode. However, this setting is not valid for SRX1500, where the default Layer 2 global mode is not switching.
Therefore, when the following configuration is used in this device and the L2 interfaces are not configured, the above warning will be displayed on commit.
No action is required. This behavior is expected by design. The warning message will appear on commit if the switching mode configuration exists and the L2 interfaces are not configured.
If the L2 interface configuration is not required, delete the configuration as follows so that the warning is not seen:
delete protocol l2-learning global-mode switching
2020-07-06: Article reviewed for accuracy; minor modifications made to configuration output