JunOS : Can’t have mastership priority configuration with preprovisioned set

By | May 11, 2014

Getting this error committing the changes on a pre-provisioned EX switches virtual chassis?

root@EX4200# commit synchronize
[edit protocols]
‘bgp’
[edit virtual-chassis]
‘member 0’
Can’t have mastership priority configuration with preprovisioned set
error: configuration check-out failed

{master:0}[edit]
root@EX4200#

This mean you tried to set a mastership priority on a pre-provisioned configuration and this is not allowed. You need to remove one or both of these statements :

set virtual-chassis member 0 mastership-priority <PRIORITY_VALUE>
set virtual-chassis member 1 mastership-priority <PRIORITY_VALUE>

Remove those statements and commit again :

delete virtual-chassis member 0 mastership-priority <PRIORITY_VALUE>
delete virtual-chassis member 1 mastership-priority <PRIORITY_VALUE>

Your pre-provisioned configuration should look like this :

set virtual-chassis preprovisioned
set virtual-chassis no-split-detection
set virtual-chassis member 0 role routing-engine
set virtual-chassis member 0 serial-number <SERIAL_NUMBER>
set virtual-chassis member 1 role routing-engine
set virtual-chassis member 1 serial-number <SERIAL_NUMBER>