Skip to content

Commit

Permalink
Custom service virtualization type
Browse files Browse the repository at this point in the history
Change-Id: Idcaeb59ed329bade1f0420cdbbc39c7d71e7b6d5
Closes-Bug: #1765720
  • Loading branch information
magdalena-zaremba committed Apr 20, 2018
1 parent 359a732 commit c37f016
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -25,6 +25,7 @@ import net.juniper.contrail.vro.workflows.util.relationDescription
val supportedVersion : Long = 2
val supportedVersions = listOf(supportedVersion)
val serviceTypes = listOf("firewall", "analyzer")
val serviceVirtualizationTypes = listOf("virtual-machine", "physical-device")

internal fun createServiceTemplate(schema: Schema) : WorkflowDefinition {
val workflowName = "Create service template"
Expand Down Expand Up @@ -59,7 +60,7 @@ internal fun createServiceTemplate(schema: Schema) : WorkflowDefinition {
parameter("serviceVirtualizationType", string) {
description = propertyDescription<ServiceTemplateType>(schema)
mandatory = false
extractPredefinedAnswers<ServiceTemplateType>(schema)
predefinedAnswers = serviceVirtualizationTypes
}
parameter("interfaceType", string.array) {
description = propertyDescription<ServiceTemplateType>(schema)
Expand Down

0 comments on commit c37f016

Please sign in to comment.