aboutsummaryrefslogtreecommitdiffstats
path: root/resources/testscripts/ns/msb_upload.py
blob: 82abfb3691e7591fa6529cd74f042955adc3e404 (plain)
1
2
3
4
5
6
7
import requests
import sys
create_id = sys.argv[1]

url = 'http://10.12.5.131:30280/api/nsd/v1/ns_descriptors/' + create_id + '/nsd_content'
resp = requests.put(url, files={'file': open(r"/home/ubuntu/test/test/ns/ns_vgw.csar", 'rb')})
print(resp.status_code)