aboutsummaryrefslogtreecommitdiffstats
path: root/src/workflow/workflow_factory.py
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-05-03 18:16:41 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-05-03 18:16:41 +0000
commitdc690ef43cc7af006c0900e8eaf1635141f0a2a1 (patch)
tree08ba81054bbd2fb10460fad7b03b36d59f386ff9 /src/workflow/workflow_factory.py
parent2fec9e57b50fee61e896f820d28aa363982413e9 (diff)
parent04b676a8bc7209b8017395dc9bb36086283ac72c (diff)
Merge "Implement OPNFV workflow"
Diffstat (limited to 'src/workflow/workflow_factory.py')
-rw-r--r--src/workflow/workflow_factory.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/workflow/workflow_factory.py b/src/workflow/workflow_factory.py
index f5e2ad1..db2bba1 100644
--- a/src/workflow/workflow_factory.py
+++ b/src/workflow/workflow_factory.py
@@ -12,6 +12,7 @@ from workflow.booking_workflow import Booking_Resource_Select, SWConfig_Select,
from workflow.resource_bundle_workflow import Define_Hardware, Define_Nets, Resource_Meta_Info
from workflow.sw_bundle_workflow import Config_Software, Define_Software, SWConf_Resource_Select
from workflow.snapshot_workflow import Select_Host_Step, Image_Meta_Step
+from workflow.opnfv_workflow import Pick_Installer, Assign_Network_Roles, Assign_Host_Roles, OPNFV_Resource_Select, MetaInfo
from workflow.models import Confirmation_Step
import uuid
@@ -36,6 +37,11 @@ class ConfigMetaWorkflow(object):
color = "#00ffcc"
+class OPNFVMetaWorkflow(object):
+ workflow_type = 3
+ color = "000000"
+
+
class MetaStep(object):
UNTOUCHED = 0
@@ -110,12 +116,21 @@ class WorkflowFactory():
Image_Meta_Step,
]
+ opnfv_steps = [
+ OPNFV_Resource_Select,
+ Pick_Installer,
+ Assign_Network_Roles,
+ Assign_Host_Roles,
+ MetaInfo
+ ]
+
def conjure(self, workflow_type=None, repo=None):
workflow_types = [
self.booking_steps,
self.resource_steps,
self.config_steps,
self.snapshot_steps,
+ self.opnfv_steps,
]
steps = self.make_steps(workflow_types[workflow_type], repository=repo)