From 3d078d2df3fac997c783435ba07e7710d087fd4b Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Wed, 17 Apr 2019 12:44:04 -0400 Subject: Adds pdf and idf into api The Pod Descriptor File (pdf) and Installer descriptor file (idf) are now hosted in the api. The url endpoint where the lab can retrieve them are now part of a software task. An OPNFV task also contains a new dictionary that describes how bridges should be configured on the jumphost. This information is not contained in the pdf/idf but is needed by the lab. Change-Id: I6971279979ba180725926035bd9db481aafb1073 Signed-off-by: Parker Berberian --- src/api/urls.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/api/urls.py') diff --git a/src/api/urls.py b/src/api/urls.py index d18a04d..d1f772a 100644 --- a/src/api/urls.py +++ b/src/api/urls.py @@ -41,6 +41,8 @@ from api.views import ( done_jobs, update_host_bmc, lab_host, + get_pdf, + get_idf, GenerateTokenView ) @@ -55,6 +57,8 @@ urlpatterns = [ path('labs//inventory', lab_inventory), path('labs//hosts/', lab_host), path('labs//hosts//bmc', update_host_bmc), + path('labs//booking//pdf', get_pdf, name="get-pdf"), + path('labs//booking//idf', get_idf, name="get-idf"), path('labs//jobs/', specific_job), path('labs//jobs//', specific_task), path('labs//jobs/new', new_jobs), -- cgit 1.2.3-korg