From 2bbb8b42385cfc740baa28e571ed1b71c9852288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Jasi=C5=84ski?= Date: Tue, 12 Jun 2018 15:19:20 +0200 Subject: [PATCH] Minor update to parameter description in Firewall Rule workflows Change-Id: I4051dd5d54bda037cfc3e3b17ead497fac536cb2 Closes-Bug: #1772594 --- .../juniper/contrail/vro/workflows/custom/FirewallRule.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/o11nplugin-contrail-workflows/src/main/kotlin/net/juniper/contrail/vro/workflows/custom/FirewallRule.kt b/o11nplugin-contrail-workflows/src/main/kotlin/net/juniper/contrail/vro/workflows/custom/FirewallRule.kt index d8871bcf..14269ad5 100644 --- a/o11nplugin-contrail-workflows/src/main/kotlin/net/juniper/contrail/vro/workflows/custom/FirewallRule.kt +++ b/o11nplugin-contrail-workflows/src/main/kotlin/net/juniper/contrail/vro/workflows/custom/FirewallRule.kt @@ -85,6 +85,7 @@ internal fun editFirewallRule(schema: Schema): WorkflowDefinition { return customWorkflow(workflowName).withScriptFile("editFirewallRule") { step("Rule") { parameter("rule", reference()) { + description = "Rule to edit" mandatory = true } } @@ -116,6 +117,7 @@ private fun PresentationParametersBuilder.firewallRuleParameters(schema: Schema, step("Service") { visibility = WhenNonNull(visibilityDependencyField) parameter(serviceTypeParameterName, string) { + description = "Service Type" mandatory = true predefinedAnswers = allowedServiceTypes defaultValue = defaultServiceType @@ -143,7 +145,7 @@ private fun PresentationParametersBuilder.firewallRuleParameters(schema: Schema, if (loadCurrentValues) dataBinding = firewallRulePropertyDataBinding("serviceDstPorts()") } parameter("serviceReference", reference()) { - description = "Service group" + description = "Service Group" visibility = FromStringParameter(serviceTypeParameterName, ServiceType.Reference.value) mandatory = true if (loadCurrentValues) dataBinding = firewallRulePropertyDataBinding("serviceGroup[0]") @@ -152,6 +154,7 @@ private fun PresentationParametersBuilder.firewallRuleParameters(schema: Schema, step("Match Tags") { visibility = WhenNonNull(visibilityDependencyField) parameter("matchTags", array(string)) { + description = "Match Tags" predefinedAnswers = allowedMatchTags sameValues = false if (loadCurrentValues) dataBinding = firewallRulePropertyDataBinding("matchTags.tagList")