aboutsummaryrefslogtreecommitdiffstats
path: root/resources/testscripts/ns/msb_upload.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/testscripts/ns/msb_upload.py')
-rw-r--r--resources/testscripts/ns/msb_upload.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/testscripts/ns/msb_upload.py b/resources/testscripts/ns/msb_upload.py
new file mode 100644
index 00000000..82abfb36
--- /dev/null
+++ b/resources/testscripts/ns/msb_upload.py
@@ -0,0 +1,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)