From 03a5ce89e93b3b578362429da69b4bc955b71cea Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Sun, 4 Oct 2020 13:08:00 +0500 Subject: [PATCH] Add static ip options --- charts/ix-chart/2009.0.1/questions.yaml | 34 +++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/charts/ix-chart/2009.0.1/questions.yaml b/charts/ix-chart/2009.0.1/questions.yaml index 5a0121d70a1..be29b8b3b92 100644 --- a/charts/ix-chart/2009.0.1/questions.yaml +++ b/charts/ix-chart/2009.0.1/questions.yaml @@ -123,3 +123,37 @@ enum: - "dhcp" - "static" + show_subquestions_if: "static" + subquestions: + - variable: staticIPConfigurations + label: "Static IP Addresses" + schema: + type: list + items: + - variable: staticIP + label: "Static IP" + schema: + type: ipaddr + cidr: true + - variable: staticRoutes + label: "Static Routes" + schema: + type: list + items: + - variable: staticRouteConfiguration + label: "Static Route Configuration" + schema: + type: dict + attrs: + - variable: destination + label: "Destination" + schema: + type: ipaddr + cidr: true + required: true + - variable: gateway + label: "Gateway" + schema: + type: ipaddr + cidr: false + required: true