updateSiteVirtualChassisMember

PUT https://{{host}}/api/v1/sites/:site_id/devices/:device_id

The VC creation and adding member switch API will update the device’s virtual chassis config which is applied after VC is formed to create JUNOS pre-provisioned virtual chassis configuration. To modify the device’s VC config after VC is created, the device config API is leveraged

Change to use preprovisioned VC

To switch the VC to use preprovisioned VC, enable preprovisioned in virtualchassis config. Both vcrole master and backup will be matched to routing-engine role in Junos preprovisioned VC config.

In this config, fpc0 has to be the same as the mac of deviceid. Use [renumber] if you want to replace fpc0 which involves deviceid change.

Notice: to configure preprovisioned VC, every member of the VC must be in the inventory.

Request Body

{"virtual_chassis"=>{"preprovisioned"=>true, "members"=>[{"mac"=>"aff827549235", "vc_ports"=>["xe-0/1/0"], "member_id"=>0, "vc_role"=>"master"}, {"mac"=>"8396cd006c8c", "vc_ports"=>["xe-0/1/0", "xe-0/1/1"], "member_id"=>1, "vc_role"=>"backup"}, {"mac"=>"8396cd00888c", "vc_ports"=>["xe-0/1/0"], "member_id"=>2, "vc_role"=>"linecard"}]}}