From db558ec91f62925bb194dc737f71adcf2c3fe733 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 17 Feb 2020 22:52:49 -0500 Subject: [PATCH] Complete implementation of OVA handling Add functions for uploading, listing, and removing OVA images to the API and CLI interfaces. Includes improved parsing of the OVF and creation of a system_template and profile for each OVA. Also modifies some behaviour around profiles, making most components option at creation to support both profile types (and incomplete profiles generally). Implementation part 2/3 - remaining: OVA VM creation References #71 --- api-daemon/pvcapid/flaskapi.py | 382 +++++++++++++++++------- api-daemon/pvcapid/ova-tmp.py | 46 +++ api-daemon/pvcapid/ova.py | 473 +++++++++++++++++++----------- api-daemon/pvcapid/provisioner.py | 29 +- client-cli/cli_lib/provisioner.py | 186 +++++++++++- client-cli/pvc.py | 117 +++++++- docs/manuals/swagger.json | 242 ++++++++++++++- 7 files changed, 1165 insertions(+), 310 deletions(-) create mode 100644 api-daemon/pvcapid/ova-tmp.py diff --git a/api-daemon/pvcapid/flaskapi.py b/api-daemon/pvcapid/flaskapi.py index 9e97afb0..44afd2d7 100755 --- a/api-daemon/pvcapid/flaskapi.py +++ b/api-daemon/pvcapid/flaskapi.py @@ -5193,6 +5193,228 @@ class API_Provisioner_Script_Element(Resource): ) api.add_resource(API_Provisioner_Script_Element, '/provisioner/script/