+ return self.run_command("vnfd-delete {}".format(id))
+
+ def delete_ns(self, id):
+ self.run_command("ns-delete {}".format(id))
+ while (requests.get("https://{}:{}/osm/nslcm/v1/ns_instances/{}".format(self.osm_hostname, self.port, id), verify=False, headers={"Accept":"application/json", "Authorization":"Bearer {}".format(os.environ["AUTH_TOKEN"])}).status_code != 404):
+ print("Deleting NS...")
+ time.sleep(5)