소스 검색

Add static ip options

Waqar Ahmed 4 년 전
부모
커밋
03a5ce89e9
1개의 변경된 파일34개의 추가작업 그리고 0개의 파일을 삭제
  1. 34 0
      charts/ix-chart/2009.0.1/questions.yaml

+ 34 - 0
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