aboutsummaryrefslogtreecommitdiffstats
path: root/src/resource_inventory
AgeCommit message (Collapse)AuthorFilesLines
2020-02-10Add getInterface() to Resource APIParker Berberian1-0/+10
Change-Id: I714b6054bfc199d55de9619672768f8fc1355747 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-02-06Merge "Fix booking errors"Parker Berberian2-2/+11
2020-02-06Merge "Updates Interface Models"Parker Berberian1-1/+1
2020-02-04Updates Interface ModelsParker Berberian1-1/+1
Removes a redundant name field and adds an explicit ForeignKey mapping between Interface and InterfaceProfile Change-Id: I3472ef53b889d8d5557e4f083a15940c2022877d Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-01-30Fix booking errorsBrandon Lo2-2/+11
This implements Host model's "release" method and replaces an instance of Network to PhysicalNetwork. Change-Id: I99b0bedbde2dcd63411cbb1fbf9b4905fc9570b1 Signed-off-by: Brandon Lo <lobrandon1217@gmail.com>
2020-01-28Comments and DocumentationParker Berberian5-62/+38
This change adds a ton of comments and documentation across all the code. Change-Id: Ifee0a2f534e8584f14b0f13af4dda8dc70eb7553 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2020-01-28Begin Resource RefactorParker Berberian3-20/+160
Begins the Resource Refactor by creating new interfaces to the resources through a Resource super class and using that new interface in the api Change-Id: I15a8179bfe915d2cde6d658d056e11cbd2c70e43 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-11-07Allow public marked grb and configs to be shownBrandon Lo2-0/+37
Change-Id: I97f4965e8522cac1ceb5c0492e9aa0a2e128d266 Signed-off-by: Brandon Lo <lobrandon1217@gmail.com>
2019-10-08Rename pharos to laasAric Gardner2-2/+2
related to change: https://gerrit.opnfv.org/gerrit/c/releng/+/68161 Signed-off-by: Aric Gardner <agardner@linuxfoundation.org> Change-Id: I4985eb116fd2c214f3639eb991f27b5d75b5ab7c Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-08-15Merge "Checks if host is working"Sawyer Bergeron1-1/+2
2019-08-07Checks if host is workingParker Berberian1-1/+2
Adds an additional check to ensure that the host is working before using it for a booking. Change-Id: I69731ca10ad59b6b774d04bdf6f3e628e6a07a79 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-06-28Adds Hostname ValidatorParker Berberian2-2/+64
Creates a single place to validate hostnames, with public fields for regex that can be copied to the frontend. We do hostname validation inconsistently all over the place, we should move to using this single validator. Change-Id: I7b71fd89843a7e5b7f9d93dcb23f4645abe71dd0 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-05-09Merge "Allow query to fail"Parker Berberian1-2/+7
2019-05-08Merge "Adds pdf and idf into api"Parker Berberian1-6/+9
2019-05-08Merge "Fix vlan leak"Parker Berberian1-6/+5
2019-05-08Fix vlan leakSawyer Bergeron1-6/+5
Change-Id: Ida98327266df6cfbd4398b897ebcbcc4dc5df24d Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-05-08Adds pdf and idf into apiParker Berberian1-6/+9
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 <pberberian@iol.unh.edu>
2019-05-03Implement OPNFV workflowSawyer Bergeron4-17/+105
This is a counterpart to an update to network models, and allows for configuring baremetal OPNFV and Openstack deploys Change-Id: I0185dbfa6c9105d7e63a7e7d7dd1f5cf228a8877 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-04-17Fixes the idf and pdf templates so that we can deploy opnfvParker Berberian3-13/+159
Change-Id: I0091629f8f0af423210b2e81210d65239e9662b4 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-04-16Merge "Fixing Network Models"Parker Berberian3-46/+162
2019-04-15Fixing Network ModelsParker Berberian3-46/+162
Change-Id: Ia2cdf069e90c8091e8d984c368e47f375aed02ea Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-03-28Add host detail viewSawyer Bergeron2-3/+19
Change-Id: Ie385fe3f2fbe3b178f00928914d47a34b181d05e Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-03-25Allow query to failParker Berberian1-2/+7
Query for interface speed when templating the pdf may fail. If it does fail, we provide a default value instead of aborting. Change-Id: Ib3d6ddca7dd055e4066fb4915d33f6f9ad73ca80 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-03-18Fixes Booking ListParker Berberian1-0/+3
Adds project collumn, removed Installer and Scenario, and correctly populates the operating system collumn. Change-Id: I8af778c66fa248832ad98188d0c93bbc84027c55 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-03-06Fix migration and modelsParker Berberian3-2/+52
We missed a few migrations Change-Id: I58e1abb53e5295ec6c6228906d6eb2fd7fea0b84 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-03-01Merge "Enhance PDF/IDF Support"Parker Berberian2-90/+173
2019-03-01Enhance PDF/IDF SupportParker Berberian2-90/+173
Improves PDF template and code organization and adds an IDF template. To complete these templates, the lab must be able to report L3 network info and ipmi info at the least. A change to the API to allow for this has to be made. Change-Id: I4b9d2e73eb3940300f7e95fa2f9f4ddd0d606c60 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-02-27Update IPMI handlingParker Berberian1-0/+21
provides a way for the lab to report IPMI info to the dashboard. Necessary to allow the dashboard to fully generate a PDF for OPNFV deploy Change-Id: Ieef7a93e28b155ee90f3ffd3cfeedace332a6641 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-02-25Check for Host AvailabilityParker Berberian1-0/+25
Currently, if not enough hosts are free to fulfill a booking, booking creation will fail with an error message to the users. This commit adds a way to check if a given POD will be available and communicates to the user if not. Change-Id: Ib75d9ee4759cf991a5c985cb4a6f7baaaafbe8fa Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-02-22Fixed Selection of single hosts in quick bookingParker Berberian1-1/+1
Change-Id: I8ca860ee23f9df44e38da76d539729771d32c455 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-01-29Allow Users to Delete objects and Cancel BookingsParker Berberian2-16/+97
A user can now delete thier own resources, configs, and snapshots as well as cancelling bookings. Change-Id: Ic8e4751feeb0b8fa0d76816b8df2d16729ad2828 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-01-18Add Quick-Booking WorkflowSawyer Bergeron3-6/+31
Users can now quickly provision a single-host pod without having to configure unecessary networking. This is intended to be analogous to the workflow used during LaaS 1.0, and to speed up the process of creating a booking for users who do not need more than a single host (for virtual deployments) Change-Id: Ia19cea9a42bbb1df57aad05af8f8ea821395664d Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
2018-11-26Fixed Misc BugsParker Berberian1-1/+1
Some corner cases that cause issues recently came to our attention. Fixes issues in the booking workflow and the Notification system. Change-Id: Ie16118ba1bdbeff86bb41a16dc783337b921d527 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-11-26Fix all flake8 errorsParker Berberian6-91/+158
The flake8 command in test.sh finds no longer finds any errors. This may form a basis of a jenkins verify job as a sort of 'weak compile-time checks' The flake8 command will not complain about line length, and will not complain about django's manage.py file Change-Id: Ic47cb4fc7ada55e64485661ab6881aef475018ff Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-10-23Merge "Adds migrations"Parker Berberian1-0/+28
2018-10-17Adds migrationsParker Berberian1-0/+28
In reviewing the LaaS 2.0 code, models were changed without the accompanying migrations. Change-Id: Ibdba456d9650c7d7d8750328852f27866a899328 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-10-15Removed references to old codeParker Berberian1-1/+1
With the LaaS 2.0 rewrite, there was still some old/dead/broken code being referenced. This patch fixes that. Change-Id: I25803652bc59bba1e416e526d205742c52f14a65 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-10-15Lab as a Service 2.0Parker Berberian13-0/+1367
See changes here: https://wiki.opnfv.org/display/INF/Pharos+Laas Change-Id: I59ada5f98e70a28d7f8c14eab3239597e236ca26 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>