Examples of usage of the APIs¶
BBSim implements the Device Management Interface and most of the examples of usage of the APIs using grpurl can be found in the BBSim docs here
Image Management APIs¶
DownloadImage¶
$ grpcurl -v -plaintext -d "{\"device_uuid\": {\"uuid\": \"$UUID\"}, \"image_info\": {\"image_url\": \"sftp://$USER:$PASSWORD@10.34.90.43:22/upload/olt-image-v1.2.3-onie_inst.bin\"}}" $DM_IP dmi.NativeSoftwareManagementService.DownloadImage
ActivateImage¶
$ grpcurl -v -plaintext -d "{\"uuid\": {\"uuid\": \"$UUID\"}}" $DM_IP dmi.NativeSoftwareManagementService.ActivateImage