Skip to content

Commit

Permalink
Customize service types
Browse files Browse the repository at this point in the history
Restrict to only firewall and analyzer

Change-Id: Ia5de41c856a1ab5aad9afb5a3aaa7cfa561e35ef
Closes-Bug: #1765715
  • Loading branch information
magdalena-zaremba committed Apr 20, 2018
1 parent 93fb82d commit b6fef60
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -24,6 +24,7 @@ import net.juniper.contrail.vro.workflows.util.relationDescription

val supportedVersion : Long = 2
val supportedVersions = listOf(supportedVersion)
val serviceTypes = listOf("firewall", "analyzer")

internal fun createServiceTemplate(schema: Schema) : WorkflowDefinition {
val workflowName = "Create service template"
Expand Down Expand Up @@ -53,7 +54,7 @@ internal fun createServiceTemplate(schema: Schema) : WorkflowDefinition {
parameter("serviceType", string) {
description = propertyDescription<ServiceTemplateType>(schema)
mandatory = true
extractPredefinedAnswers<ServiceTemplateType>(schema)
predefinedAnswers = serviceTypes
}
parameter("serviceVirtualizationType", string) {
description = propertyDescription<ServiceTemplateType>(schema)
Expand Down

0 comments on commit b6fef60

Please sign in to comment.