This article provides information about the general non-provisioned configuration for EX/QFX devices
To configure primary role of the Virtual Chassis through a configuration that is not preprovisioned:
255
[edit virtual-chassis] user@switch# set member 0 mastership-priority 255
[edit virtual-chassis] user@switch# set member 1 mastership-priority 255
[edit virtual-chassis] user@switch# set no-split-detection
NOTE: You should assign the same (highest) primary-role priority value to both the primary and backup Routing Engine members for reliable graceful Routing Engine switchover (GRES) operation. This and the other primary-role election considerations also help keep primary role from switching back and forth rapidly between the two members under failover conditions.
128
user@switch> request virtual-chassis vc-port set pic-slot 1 port 0 user@switch> request virtual-chassis vc-port set pic-slot 1 port 1
NOTE: if the switch is having dedicated VCPs it doesn't require any VC port configuration