@openshift-assisted/ui-lib 2.17.0-cim → 2.17.3-cim

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (562) hide show
  1. package/build/@types/cim/components/Agent/AgentStatus.d.ts +1 -0
  2. package/build/@types/cim/components/Agent/AgentStatus.d.ts.map +1 -1
  3. package/build/@types/cim/components/Agent/AgentTable.d.ts.map +1 -1
  4. package/build/@types/cim/components/Agent/AgentsSelectionTable.d.ts.map +1 -1
  5. package/build/@types/cim/components/Agent/BMCForm.d.ts.map +1 -1
  6. package/build/@types/cim/components/Agent/BMHEventsModal.d.ts +8 -0
  7. package/build/@types/cim/components/Agent/BMHEventsModal.d.ts.map +1 -0
  8. package/build/@types/cim/components/Agent/BMHStatus.d.ts +2 -0
  9. package/build/@types/cim/components/Agent/BMHStatus.d.ts.map +1 -1
  10. package/build/@types/cim/components/Agent/BMHStatusInfo.d.ts +8 -0
  11. package/build/@types/cim/components/Agent/BMHStatusInfo.d.ts.map +1 -0
  12. package/build/@types/cim/components/Agent/MinimalHWRequirements.d.ts.map +1 -1
  13. package/build/@types/cim/components/Agent/index.d.ts +2 -0
  14. package/build/@types/cim/components/Agent/index.d.ts.map +1 -1
  15. package/build/@types/cim/components/Agent/tableColumns.d.ts +29 -0
  16. package/build/@types/cim/components/Agent/tableColumns.d.ts.map +1 -0
  17. package/build/@types/cim/components/Agent/tableUtils.d.ts +2 -22
  18. package/build/@types/cim/components/Agent/tableUtils.d.ts.map +1 -1
  19. package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts +1 -1
  20. package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts.map +1 -1
  21. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.d.ts.map +1 -1
  22. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts +0 -1
  23. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts.map +1 -1
  24. package/build/@types/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.d.ts.map +1 -1
  25. package/build/@types/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.d.ts.map +1 -1
  26. package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts +1 -1
  27. package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts.map +1 -1
  28. package/build/@types/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.d.ts.map +1 -1
  29. package/build/@types/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.d.ts.map +1 -1
  30. package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts +9 -5
  31. package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts.map +1 -1
  32. package/build/@types/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.d.ts.map +1 -1
  33. package/build/@types/cim/components/Hypershift/HostedClusterWizard/NetworkStep/AdvancedNetworkFields.d.ts.map +1 -0
  34. package/build/@types/cim/components/Hypershift/modals/AddNodePoolModal.d.ts.map +1 -1
  35. package/build/@types/cim/components/Hypershift/modals/ManageHostsModal.d.ts.map +1 -1
  36. package/build/@types/cim/components/Hypershift/modals/RemoveNodePoolModal.d.ts.map +1 -1
  37. package/build/@types/cim/components/InfraEnv/EnvironmentDetails.d.ts.map +1 -1
  38. package/build/@types/cim/components/InfraEnv/EnvironmentErrors.d.ts +0 -1
  39. package/build/@types/cim/components/InfraEnv/EnvironmentErrors.d.ts.map +1 -1
  40. package/build/@types/cim/components/InfraEnv/InfraEnvFormPage.d.ts.map +1 -1
  41. package/build/@types/cim/components/helpers/agentStatus.d.ts.map +1 -1
  42. package/build/@types/cim/components/helpers/versions.d.ts +1 -1
  43. package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
  44. package/build/@types/cim/components/modals/AddBmcHostModal.d.ts.map +1 -1
  45. package/build/@types/cim/components/modals/AddBmcHostYamlForm.d.ts.map +1 -1
  46. package/build/@types/cim/components/modals/AddBmcHostYamlModal.d.ts.map +1 -1
  47. package/build/@types/cim/components/modals/AddHostModal.d.ts.map +1 -1
  48. package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationModal.d.ts.map +1 -1
  49. package/build/@types/cim/components/modals/EditBMHModal.d.ts.map +1 -1
  50. package/build/@types/cim/components/modals/EditNtpSourcesModal.d.ts.map +1 -1
  51. package/build/@types/cim/components/modals/EditProxyModal.d.ts.map +1 -1
  52. package/build/@types/cim/components/modals/EditPullSecretModal.d.ts.map +1 -1
  53. package/build/@types/cim/components/modals/EditSSHKeyModal.d.ts.map +1 -1
  54. package/build/@types/cim/components/modals/MassApproveAgentModal.d.ts.map +1 -1
  55. package/build/@types/cim/components/modals/ScaleUpModal.d.ts.map +1 -1
  56. package/build/@types/cim/hooks/index.d.ts +1 -0
  57. package/build/@types/cim/hooks/index.d.ts.map +1 -1
  58. package/build/@types/cim/hooks/types.d.ts +1 -1
  59. package/build/@types/cim/hooks/types.d.ts.map +1 -1
  60. package/build/@types/cim/hooks/useEvents.d.ts +4 -0
  61. package/build/@types/cim/hooks/useEvents.d.ts.map +1 -0
  62. package/build/@types/cim/types/fromOCP/k8sTypes.d.ts +12 -0
  63. package/build/@types/cim/types/fromOCP/k8sTypes.d.ts.map +1 -1
  64. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts +4 -0
  65. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts.map +1 -1
  66. package/build/@types/cim/types/k8s/bare-metal-host.d.ts +20 -0
  67. package/build/@types/cim/types/k8s/bare-metal-host.d.ts.map +1 -1
  68. package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
  69. package/build/@types/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.d.ts.map +1 -1
  70. package/build/@types/common/components/clusterConfiguration/utils.d.ts +2 -2
  71. package/build/@types/common/components/clusterConfiguration/utils.d.ts.map +1 -1
  72. package/build/@types/common/components/clusterWizard/clusterDetailsValidation.d.ts.map +1 -1
  73. package/build/@types/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.d.ts +7 -0
  74. package/build/@types/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.d.ts.map +1 -0
  75. package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts +10 -6
  76. package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts.map +1 -1
  77. package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts +13 -0
  78. package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts.map +1 -0
  79. package/build/@types/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/SubnetsDropdown.d.ts +1 -1
  80. package/build/@types/common/components/clusterWizard/networkingSteps/SubnetsDropdown.d.ts.map +1 -0
  81. package/build/@types/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.d.ts +4 -2
  82. package/build/@types/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.d.ts.map +1 -1
  83. package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts +7 -2
  84. package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts.map +1 -1
  85. package/build/@types/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/reorderNetworks.d.ts +1 -1
  86. package/build/@types/common/components/clusterWizard/networkingSteps/reorderNetworks.d.ts.map +1 -0
  87. package/build/@types/common/components/hosts/AdditionalNTPSourcesDialog.d.ts.map +1 -1
  88. package/build/@types/common/components/hosts/EditHostForm.d.ts.map +1 -1
  89. package/build/@types/common/components/hosts/HostStatus.d.ts.map +1 -1
  90. package/build/@types/common/components/hosts/HostValidationGroups.d.ts.map +1 -1
  91. package/build/@types/common/components/hosts/MassChangeHostnameModal.d.ts.map +1 -1
  92. package/build/@types/common/components/hosts/index.d.ts +2 -0
  93. package/build/@types/common/components/hosts/index.d.ts.map +1 -1
  94. package/build/@types/common/components/hosts/tableColumns.d.ts +21 -0
  95. package/build/@types/common/components/hosts/tableColumns.d.ts.map +1 -0
  96. package/build/@types/common/components/hosts/tableUtils.d.ts +3 -21
  97. package/build/@types/common/components/hosts/tableUtils.d.ts.map +1 -1
  98. package/build/@types/common/components/hosts/types.d.ts +1 -0
  99. package/build/@types/common/components/hosts/types.d.ts.map +1 -1
  100. package/build/@types/common/components/ui/EventsList.d.ts.map +1 -1
  101. package/build/@types/common/components/ui/PrismCode.d.ts +13 -11
  102. package/build/@types/common/components/ui/PrismCode.d.ts.map +1 -1
  103. package/build/@types/common/components/ui/formik/LabelField.d.ts +3 -11
  104. package/build/@types/common/components/ui/formik/LabelField.d.ts.map +1 -1
  105. package/build/@types/common/components/ui/formik/index.d.ts +0 -2
  106. package/build/@types/common/components/ui/formik/index.d.ts.map +1 -1
  107. package/build/@types/common/components/ui/index.d.ts +1 -1
  108. package/build/@types/common/components/ui/index.d.ts.map +1 -1
  109. package/build/@types/common/config/constants.d.ts +2 -1
  110. package/build/@types/common/config/constants.d.ts.map +1 -1
  111. package/build/@types/common/index.d.ts +1 -0
  112. package/build/@types/common/index.d.ts.map +1 -1
  113. package/build/@types/common/types/clusters.d.ts +0 -1
  114. package/build/@types/common/types/clusters.d.ts.map +1 -1
  115. package/build/@types/common/utils.d.ts +2 -2
  116. package/build/@types/common/utils.d.ts.map +1 -1
  117. package/build/@types/common/validationSchemas/addressValidation.d.ts +18 -0
  118. package/build/@types/common/validationSchemas/addressValidation.d.ts.map +1 -0
  119. package/build/@types/common/validationSchemas/clusterDetailsValidation.d.ts +8 -0
  120. package/build/@types/common/validationSchemas/clusterDetailsValidation.d.ts.map +1 -0
  121. package/build/@types/common/{components/ui/formik → validationSchemas}/constants.d.ts +1 -3
  122. package/build/@types/common/validationSchemas/constants.d.ts.map +1 -0
  123. package/build/@types/common/validationSchemas/hostnameValidation.d.ts +4 -0
  124. package/build/@types/common/validationSchemas/hostnameValidation.d.ts.map +1 -0
  125. package/build/@types/common/validationSchemas/index.d.ts +11 -0
  126. package/build/@types/common/validationSchemas/index.d.ts.map +1 -0
  127. package/build/@types/common/validationSchemas/networkingValidation.d.ts +18 -0
  128. package/build/@types/common/validationSchemas/networkingValidation.d.ts.map +1 -0
  129. package/build/@types/common/validationSchemas/ntpValidation.d.ts +4 -0
  130. package/build/@types/common/validationSchemas/ntpValidation.d.ts.map +1 -0
  131. package/build/@types/common/validationSchemas/proxyValidation.d.ts +11 -0
  132. package/build/@types/common/validationSchemas/proxyValidation.d.ts.map +1 -0
  133. package/build/@types/common/validationSchemas/pullSecretValidation.d.ts +4 -0
  134. package/build/@types/common/validationSchemas/pullSecretValidation.d.ts.map +1 -0
  135. package/build/@types/common/validationSchemas/regexes.d.ts +14 -0
  136. package/build/@types/common/validationSchemas/regexes.d.ts.map +1 -0
  137. package/build/@types/common/validationSchemas/sshValidation.d.ts +5 -0
  138. package/build/@types/common/validationSchemas/sshValidation.d.ts.map +1 -0
  139. package/build/@types/common/validationSchemas/utils.d.ts +7 -0
  140. package/build/@types/common/validationSchemas/utils.d.ts.map +1 -0
  141. package/build/@types/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.d.ts.map +1 -1
  142. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.d.ts.map +1 -1
  143. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts +2 -1
  144. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts.map +1 -1
  145. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts +1 -1
  146. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts.map +1 -1
  147. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
  148. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.d.ts.map +1 -1
  149. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts +2 -1
  150. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
  151. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.d.ts.map +1 -1
  152. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.d.ts +2 -1
  153. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.d.ts.map +1 -1
  154. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.d.ts.map +1 -1
  155. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.d.ts +2 -1
  156. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.d.ts.map +1 -1
  157. package/build/@types/ocm/components/clusterDetail/ResetClusterModal.d.ts.map +1 -1
  158. package/build/@types/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.d.ts.map +1 -1
  159. package/build/@types/ocm/components/hosts/ClusterHostsTable.d.ts.map +1 -1
  160. package/build/@types/ocm/components/hosts/HostsDiscoveryTable.d.ts.map +1 -1
  161. package/build/@types/ocm/components/hosts/HostsStorageTable.d.ts.map +1 -1
  162. package/build/@types/ocm/components/hosts/UpdateDay2ApiVipForm.d.ts.map +1 -1
  163. package/build/@types/ocm/components/hosts/use-hosts-table.d.ts.map +1 -1
  164. package/build/cjs/cim/components/Agent/AgentStatus.js +2 -2
  165. package/build/cjs/cim/components/Agent/AgentStatus.js.map +1 -1
  166. package/build/cjs/cim/components/Agent/AgentTable.js +10 -9
  167. package/build/cjs/cim/components/Agent/AgentTable.js.map +1 -1
  168. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js +9 -8
  169. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js.map +1 -1
  170. package/build/cjs/cim/components/Agent/BMCForm.js +7 -8
  171. package/build/cjs/cim/components/Agent/BMCForm.js.map +1 -1
  172. package/build/cjs/cim/components/Agent/BMHEventsModal.js +54 -0
  173. package/build/cjs/cim/components/Agent/BMHEventsModal.js.map +1 -0
  174. package/build/cjs/cim/components/Agent/BMHStatus.js +3 -2
  175. package/build/cjs/cim/components/Agent/BMHStatus.js.map +1 -1
  176. package/build/cjs/cim/components/Agent/BMHStatusInfo.js +59 -0
  177. package/build/cjs/cim/components/Agent/BMHStatusInfo.js.map +1 -0
  178. package/build/cjs/cim/components/Agent/MinimalHWRequirements.js +6 -5
  179. package/build/cjs/cim/components/Agent/MinimalHWRequirements.js.map +1 -1
  180. package/build/cjs/cim/components/Agent/index.js +2 -0
  181. package/build/cjs/cim/components/Agent/index.js.map +1 -1
  182. package/build/cjs/cim/components/Agent/tableColumns.js +184 -0
  183. package/build/cjs/cim/components/Agent/tableColumns.js.map +1 -0
  184. package/build/cjs/cim/components/Agent/tableUtils.js +4 -174
  185. package/build/cjs/cim/components/Agent/tableUtils.js.map +1 -1
  186. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.js +10 -10
  187. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.js.map +1 -1
  188. package/build/cjs/cim/components/ClusterDeployment/LocationsSelector.js +2 -2
  189. package/build/cjs/cim/components/ClusterDeployment/LocationsSelector.js.map +1 -1
  190. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +28 -38
  191. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
  192. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js +9 -15
  193. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js.map +1 -1
  194. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js +9 -7
  195. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js.map +1 -1
  196. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js +13 -14
  197. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js.map +1 -1
  198. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js +14 -13
  199. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js.map +1 -1
  200. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js +19 -18
  201. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js.map +1 -1
  202. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.js +9 -10
  203. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.js.map +1 -1
  204. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.js +2 -2
  205. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.js.map +1 -1
  206. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.js +12 -8
  207. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.js.map +1 -1
  208. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js +6 -4
  209. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -1
  210. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +21 -14
  211. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
  212. package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsTable.js +2 -2
  213. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js +2 -2
  214. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js.map +1 -1
  215. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.js +1 -1
  216. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.js +2 -11
  217. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.js.map +1 -1
  218. package/build/cjs/{common/components/clusterConfiguration → cim/components/Hypershift/HostedClusterWizard/NetworkStep}/AdvancedNetworkFields.js +3 -3
  219. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/AdvancedNetworkFields.js.map +1 -0
  220. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkForm.js +1 -1
  221. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkForm.js.map +1 -1
  222. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkStep.js +8 -8
  223. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkStep.js.map +1 -1
  224. package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js +4 -4
  225. package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js.map +1 -1
  226. package/build/cjs/cim/components/Hypershift/modals/ManageHostsModal.js +4 -4
  227. package/build/cjs/cim/components/Hypershift/modals/ManageHostsModal.js.map +1 -1
  228. package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js +1 -1
  229. package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js.map +1 -1
  230. package/build/cjs/cim/components/Hypershift/modals/RemoveNodePoolModal.js +4 -4
  231. package/build/cjs/cim/components/Hypershift/modals/RemoveNodePoolModal.js.map +1 -1
  232. package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js +5 -2
  233. package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js.map +1 -1
  234. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js +2 -4
  235. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js.map +1 -1
  236. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +11 -11
  237. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
  238. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js +8 -6
  239. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js.map +1 -1
  240. package/build/cjs/cim/components/common/ResourceAlerts.js +2 -4
  241. package/build/cjs/cim/components/common/ResourceAlerts.js.map +1 -1
  242. package/build/cjs/cim/components/helpers/agentStatus.js +5 -0
  243. package/build/cjs/cim/components/helpers/agentStatus.js.map +1 -1
  244. package/build/cjs/cim/components/helpers/toAssisted.js +28 -26
  245. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  246. package/build/cjs/cim/components/helpers/versions.js +42 -27
  247. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  248. package/build/cjs/cim/components/modals/AddBmcHostModal.js +7 -5
  249. package/build/cjs/cim/components/modals/AddBmcHostModal.js.map +1 -1
  250. package/build/cjs/cim/components/modals/AddBmcHostYamlForm.js +2 -3
  251. package/build/cjs/cim/components/modals/AddBmcHostYamlForm.js.map +1 -1
  252. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js +7 -5
  253. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js.map +1 -1
  254. package/build/cjs/cim/components/modals/AddHostModal.js +9 -7
  255. package/build/cjs/cim/components/modals/AddHostModal.js.map +1 -1
  256. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +26 -25
  257. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
  258. package/build/cjs/cim/components/modals/EditBMHModal.js +4 -2
  259. package/build/cjs/cim/components/modals/EditBMHModal.js.map +1 -1
  260. package/build/cjs/cim/components/modals/EditNtpSourcesModal.js +4 -4
  261. package/build/cjs/cim/components/modals/EditNtpSourcesModal.js.map +1 -1
  262. package/build/cjs/cim/components/modals/EditProxyModal.js +9 -7
  263. package/build/cjs/cim/components/modals/EditProxyModal.js.map +1 -1
  264. package/build/cjs/cim/components/modals/EditPullSecretModal.js +5 -5
  265. package/build/cjs/cim/components/modals/EditPullSecretModal.js.map +1 -1
  266. package/build/cjs/cim/components/modals/EditSSHKeyModal.js +8 -8
  267. package/build/cjs/cim/components/modals/EditSSHKeyModal.js.map +1 -1
  268. package/build/cjs/cim/components/modals/MassApproveAgentModal.js +4 -4
  269. package/build/cjs/cim/components/modals/MassApproveAgentModal.js.map +1 -1
  270. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +1 -1
  271. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
  272. package/build/cjs/cim/components/modals/ScaleUpModal.js +4 -4
  273. package/build/cjs/cim/components/modals/ScaleUpModal.js.map +1 -1
  274. package/build/cjs/cim/hooks/index.js +1 -0
  275. package/build/cjs/cim/hooks/index.js.map +1 -1
  276. package/build/cjs/cim/hooks/useEvents.js +12 -0
  277. package/build/cjs/cim/hooks/useEvents.js.map +1 -0
  278. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +7 -6
  279. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
  280. package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js +1 -1
  281. package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js.map +1 -1
  282. package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js +9 -9
  283. package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js.map +1 -1
  284. package/build/cjs/common/components/clusterConfiguration/ProxyFields.js +3 -3
  285. package/build/cjs/common/components/clusterConfiguration/ProxyFields.js.map +1 -1
  286. package/build/cjs/common/components/clusterConfiguration/utils.js +3 -4
  287. package/build/cjs/common/components/clusterConfiguration/utils.js.map +1 -1
  288. package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js +8 -8
  289. package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js.map +1 -1
  290. package/build/cjs/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.js +62 -0
  291. package/build/cjs/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.js.map +1 -0
  292. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +130 -46
  293. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
  294. package/build/cjs/{ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js → common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js} +59 -38
  295. package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js.map +1 -0
  296. package/build/cjs/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/SubnetsDropdown.js +7 -5
  297. package/build/cjs/common/components/clusterWizard/networkingSteps/SubnetsDropdown.js.map +1 -0
  298. package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js +96 -38
  299. package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js.map +1 -1
  300. package/build/cjs/common/components/clusterWizard/networkingSteps/index.js +13 -3
  301. package/build/cjs/common/components/clusterWizard/networkingSteps/index.js.map +1 -1
  302. package/build/cjs/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/reorderNetworks.js +2 -2
  303. package/build/cjs/common/components/clusterWizard/networkingSteps/reorderNetworks.js.map +1 -0
  304. package/build/cjs/common/components/hosts/AdditionalNTPSourcesDialog.js +2 -1
  305. package/build/cjs/common/components/hosts/AdditionalNTPSourcesDialog.js.map +1 -1
  306. package/build/cjs/common/components/hosts/EditHostForm.js +3 -2
  307. package/build/cjs/common/components/hosts/EditHostForm.js.map +1 -1
  308. package/build/cjs/common/components/hosts/HostStatus.js +8 -6
  309. package/build/cjs/common/components/hosts/HostStatus.js.map +1 -1
  310. package/build/cjs/common/components/hosts/HostValidationGroups.js +2 -3
  311. package/build/cjs/common/components/hosts/HostValidationGroups.js.map +1 -1
  312. package/build/cjs/common/components/hosts/MassChangeHostnameModal.js +13 -18
  313. package/build/cjs/common/components/hosts/MassChangeHostnameModal.js.map +1 -1
  314. package/build/cjs/common/components/hosts/index.js +2 -0
  315. package/build/cjs/common/components/hosts/index.js.map +1 -1
  316. package/build/cjs/common/components/hosts/tableColumns.js +336 -0
  317. package/build/cjs/common/components/hosts/tableColumns.js.map +1 -0
  318. package/build/cjs/common/components/hosts/tableUtils.js +1 -331
  319. package/build/cjs/common/components/hosts/tableUtils.js.map +1 -1
  320. package/build/cjs/common/components/ui/EventsList.js +1 -1
  321. package/build/cjs/common/components/ui/EventsList.js.map +1 -1
  322. package/build/cjs/common/components/ui/PrismCode.js +29 -20
  323. package/build/cjs/common/components/ui/PrismCode.js.map +1 -1
  324. package/build/cjs/common/components/ui/formik/LabelField.js +34 -26
  325. package/build/cjs/common/components/ui/formik/LabelField.js.map +1 -1
  326. package/build/cjs/common/components/ui/formik/index.js +0 -2
  327. package/build/cjs/common/components/ui/formik/index.js.map +1 -1
  328. package/build/cjs/common/components/ui/index.js +1 -2
  329. package/build/cjs/common/components/ui/index.js.map +1 -1
  330. package/build/cjs/common/config/constants.js +27 -4
  331. package/build/cjs/common/config/constants.js.map +1 -1
  332. package/build/cjs/common/config/docs_links.js +1 -1
  333. package/build/cjs/common/index.js +1 -0
  334. package/build/cjs/common/index.js.map +1 -1
  335. package/build/cjs/common/types/clusters.js.map +1 -1
  336. package/build/cjs/common/utils.js +5 -3
  337. package/build/cjs/common/utils.js.map +1 -1
  338. package/build/cjs/common/validationSchemas/addressValidation.js +246 -0
  339. package/build/cjs/common/validationSchemas/addressValidation.js.map +1 -0
  340. package/build/cjs/common/validationSchemas/clusterDetailsValidation.js +104 -0
  341. package/build/cjs/common/validationSchemas/clusterDetailsValidation.js.map +1 -0
  342. package/build/cjs/common/{components/ui/formik → validationSchemas}/constants.js +3 -5
  343. package/build/cjs/common/validationSchemas/constants.js.map +1 -0
  344. package/build/cjs/common/validationSchemas/hostnameValidation.js +36 -0
  345. package/build/cjs/common/validationSchemas/hostnameValidation.js.map +1 -0
  346. package/build/cjs/common/validationSchemas/index.js +17 -0
  347. package/build/cjs/common/validationSchemas/index.js.map +1 -0
  348. package/build/cjs/common/validationSchemas/networkingValidation.js +74 -0
  349. package/build/cjs/common/validationSchemas/networkingValidation.js.map +1 -0
  350. package/build/cjs/common/validationSchemas/ntpValidation.js +25 -0
  351. package/build/cjs/common/validationSchemas/ntpValidation.js.map +1 -0
  352. package/build/cjs/common/validationSchemas/proxyValidation.js +43 -0
  353. package/build/cjs/common/validationSchemas/proxyValidation.js.map +1 -0
  354. package/build/cjs/common/validationSchemas/pullSecretValidation.js +21 -0
  355. package/build/cjs/common/validationSchemas/pullSecretValidation.js.map +1 -0
  356. package/build/cjs/common/validationSchemas/regexes.js +17 -0
  357. package/build/cjs/common/validationSchemas/regexes.js.map +1 -0
  358. package/build/cjs/common/validationSchemas/sshValidation.js +32 -0
  359. package/build/cjs/common/validationSchemas/sshValidation.js.map +1 -0
  360. package/build/cjs/common/validationSchemas/utils.js +40 -0
  361. package/build/cjs/common/validationSchemas/utils.js.map +1 -0
  362. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js +1 -1
  363. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js.map +1 -1
  364. package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js +7 -6
  365. package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
  366. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.js +4 -2
  367. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.js.map +1 -1
  368. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.js +7 -6
  369. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.js.map +1 -1
  370. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +6 -12
  371. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
  372. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +2 -1
  373. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
  374. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.js +8 -9
  375. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.js.map +1 -1
  376. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +13 -23
  377. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
  378. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.js +3 -1
  379. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.js.map +1 -1
  380. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.js +6 -6
  381. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.js.map +1 -1
  382. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.js +3 -1
  383. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.js.map +1 -1
  384. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.js +12 -12
  385. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.js.map +1 -1
  386. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +1 -1
  387. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
  388. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js +1 -1
  389. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js.map +1 -1
  390. package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js +4 -3
  391. package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js.map +1 -1
  392. package/build/cjs/ocm/components/hosts/ClusterHostsTable.js +7 -8
  393. package/build/cjs/ocm/components/hosts/ClusterHostsTable.js.map +1 -1
  394. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js +7 -8
  395. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js.map +1 -1
  396. package/build/cjs/ocm/components/hosts/HostsStorageTable.js +5 -6
  397. package/build/cjs/ocm/components/hosts/HostsStorageTable.js.map +1 -1
  398. package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipForm.js +2 -1
  399. package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipForm.js.map +1 -1
  400. package/build/cjs/ocm/components/hosts/use-hosts-table.js +2 -3
  401. package/build/cjs/ocm/components/hosts/use-hosts-table.js.map +1 -1
  402. package/lib/cim/components/Agent/AgentStatus.tsx +3 -0
  403. package/lib/cim/components/Agent/AgentTable.tsx +3 -2
  404. package/lib/cim/components/Agent/AgentsSelectionTable.tsx +3 -12
  405. package/lib/cim/components/Agent/BMCForm.tsx +11 -10
  406. package/lib/cim/components/Agent/BMHEventsModal.tsx +87 -0
  407. package/lib/cim/components/Agent/BMHStatus.tsx +17 -17
  408. package/lib/cim/components/Agent/BMHStatusInfo.tsx +94 -0
  409. package/lib/cim/components/Agent/MinimalHWRequirements.tsx +17 -12
  410. package/lib/cim/components/Agent/index.ts +2 -0
  411. package/lib/cim/components/Agent/tableColumns.tsx +257 -0
  412. package/lib/cim/components/Agent/tableUtils.tsx +4 -243
  413. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.tsx +2 -2
  414. package/lib/cim/components/ClusterDeployment/LocationsSelector.tsx +2 -2
  415. package/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +61 -44
  416. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx +8 -18
  417. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx +9 -12
  418. package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.tsx +3 -5
  419. package/lib/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.tsx +28 -31
  420. package/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts +30 -36
  421. package/lib/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.tsx +2 -7
  422. package/lib/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.tsx +3 -3
  423. package/lib/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.tsx +26 -26
  424. package/lib/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.tsx +20 -6
  425. package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +41 -17
  426. package/lib/cim/components/Hypershift/DetailsPage/NodePoolsTable.tsx +2 -2
  427. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.tsx +2 -2
  428. package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.tsx +1 -1
  429. package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.tsx +2 -13
  430. package/lib/{common/components/clusterConfiguration → cim/components/Hypershift/HostedClusterWizard/NetworkStep}/AdvancedNetworkFields.tsx +4 -4
  431. package/lib/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkForm.tsx +1 -1
  432. package/lib/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkStep.tsx +8 -8
  433. package/lib/cim/components/Hypershift/modals/AddNodePoolModal.tsx +15 -16
  434. package/lib/cim/components/Hypershift/modals/ManageHostsModal.tsx +15 -16
  435. package/lib/cim/components/Hypershift/modals/NodePoolForm.tsx +1 -1
  436. package/lib/cim/components/Hypershift/modals/RemoveNodePoolModal.tsx +14 -11
  437. package/lib/cim/components/InfraEnv/EnvironmentDetails.tsx +6 -3
  438. package/lib/cim/components/InfraEnv/EnvironmentErrors.tsx +1 -6
  439. package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +6 -6
  440. package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +8 -6
  441. package/lib/cim/components/common/ResourceAlerts.tsx +4 -4
  442. package/lib/cim/components/helpers/agentStatus.tsx +5 -0
  443. package/lib/cim/components/helpers/toAssisted.ts +15 -15
  444. package/lib/cim/components/helpers/versions.ts +51 -34
  445. package/lib/cim/components/modals/AddBmcHostModal.tsx +14 -13
  446. package/lib/cim/components/modals/AddBmcHostYamlForm.tsx +6 -5
  447. package/lib/cim/components/modals/AddBmcHostYamlModal.tsx +8 -7
  448. package/lib/cim/components/modals/AddHostModal.tsx +22 -11
  449. package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +79 -69
  450. package/lib/cim/components/modals/EditBMHModal.tsx +2 -3
  451. package/lib/cim/components/modals/EditNtpSourcesModal.tsx +15 -10
  452. package/lib/cim/components/modals/EditProxyModal.tsx +22 -13
  453. package/lib/cim/components/modals/EditPullSecretModal.tsx +15 -11
  454. package/lib/cim/components/modals/EditSSHKeyModal.tsx +24 -19
  455. package/lib/cim/components/modals/MassApproveAgentModal.tsx +16 -8
  456. package/lib/cim/components/modals/MassDeleteAgentModal.tsx +1 -1
  457. package/lib/cim/components/modals/ScaleUpModal.tsx +9 -7
  458. package/lib/cim/hooks/index.tsx +1 -0
  459. package/lib/cim/hooks/types.tsx +4 -1
  460. package/lib/cim/hooks/useEvents.tsx +14 -0
  461. package/lib/cim/types/fromOCP/k8sTypes.ts +13 -0
  462. package/lib/cim/types/k8s/agent-cluster-install.ts +4 -0
  463. package/lib/cim/types/k8s/bare-metal-host.ts +20 -0
  464. package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +9 -8
  465. package/lib/common/components/clusterConfiguration/DiscoveryInstructions.tsx +1 -1
  466. package/lib/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.tsx +7 -10
  467. package/lib/common/components/clusterConfiguration/ProxyFields.tsx +3 -3
  468. package/lib/common/components/clusterConfiguration/utils.ts +22 -12
  469. package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +21 -11
  470. package/lib/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/AdvancedNetworkFields.tsx +54 -38
  471. package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +221 -53
  472. package/lib/{ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.tsx → common/components/clusterWizard/networkingSteps/StackTypeControlGroup.tsx} +64 -28
  473. package/lib/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/SubnetsDropdown.tsx +4 -7
  474. package/lib/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.tsx +199 -80
  475. package/lib/common/components/clusterWizard/networkingSteps/index.ts +10 -2
  476. package/lib/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/reorderNetworks.ts +2 -1
  477. package/lib/common/components/hosts/AdditionalNTPSourcesDialog.tsx +3 -6
  478. package/lib/common/components/hosts/EditHostForm.tsx +2 -8
  479. package/lib/common/components/hosts/HostStatus.tsx +14 -3
  480. package/lib/common/components/hosts/HostValidationGroups.tsx +5 -4
  481. package/lib/common/components/hosts/MassChangeHostnameModal.tsx +48 -44
  482. package/lib/common/components/hosts/index.ts +2 -0
  483. package/lib/common/components/hosts/tableColumns.tsx +411 -0
  484. package/lib/common/components/hosts/tableUtils.tsx +4 -409
  485. package/lib/common/components/hosts/types.ts +1 -0
  486. package/lib/common/components/ui/EventsList.tsx +4 -2
  487. package/lib/common/components/ui/PrismCode.tsx +35 -22
  488. package/lib/common/components/ui/formik/LabelField.tsx +77 -60
  489. package/lib/common/components/ui/formik/index.tsx +0 -2
  490. package/lib/common/components/ui/index.ts +1 -1
  491. package/lib/common/config/constants.ts +33 -2
  492. package/lib/common/config/docs_links.ts +1 -1
  493. package/lib/common/index.ts +2 -0
  494. package/lib/common/types/clusters.ts +0 -1
  495. package/lib/common/utils.ts +5 -7
  496. package/lib/common/{components/ui/formik → validationSchemas}/_validationSchemas.test.ts +51 -39
  497. package/lib/common/validationSchemas/addressValidation.tsx +349 -0
  498. package/lib/common/validationSchemas/clusterDetailsValidation.tsx +168 -0
  499. package/lib/common/{components/ui/formik → validationSchemas}/constants.tsx +3 -6
  500. package/lib/common/validationSchemas/hostnameValidation.tsx +46 -0
  501. package/lib/common/validationSchemas/index.tsx +11 -0
  502. package/lib/common/validationSchemas/networkingValidation.tsx +113 -0
  503. package/lib/common/validationSchemas/ntpValidation.tsx +30 -0
  504. package/lib/common/validationSchemas/proxyValidation.tsx +67 -0
  505. package/lib/common/validationSchemas/pullSecretValidation.tsx +24 -0
  506. package/lib/common/validationSchemas/regexes.tsx +22 -0
  507. package/lib/common/validationSchemas/sshValidation.tsx +46 -0
  508. package/lib/common/validationSchemas/utils.tsx +36 -0
  509. package/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx +2 -2
  510. package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +17 -15
  511. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.tsx +4 -2
  512. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.tsx +31 -31
  513. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +12 -23
  514. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +9 -2
  515. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.tsx +3 -2
  516. package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +16 -26
  517. package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.tsx +3 -1
  518. package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.tsx +11 -6
  519. package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.tsx +5 -1
  520. package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.tsx +33 -28
  521. package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +2 -1
  522. package/lib/ocm/components/clusterWizard/OperatorsSelect.tsx +2 -2
  523. package/lib/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.tsx +5 -3
  524. package/lib/ocm/components/hosts/ClusterHostsTable.tsx +4 -3
  525. package/lib/ocm/components/hosts/HostsDiscoveryTable.tsx +2 -4
  526. package/lib/ocm/components/hosts/HostsStorageTable.tsx +5 -7
  527. package/lib/ocm/components/hosts/UpdateDay2ApiVipForm.tsx +3 -7
  528. package/lib/ocm/components/hosts/use-hosts-table.tsx +2 -1
  529. package/package.json +3 -3
  530. package/build/@types/common/components/clusterConfiguration/AdvancedNetworkFields.d.ts.map +0 -1
  531. package/build/@types/common/components/ui/formik/constants.d.ts.map +0 -1
  532. package/build/@types/common/components/ui/formik/validationSchemas.d.ts +0 -52
  533. package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +0 -1
  534. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.d.ts +0 -4
  535. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.d.ts.map +0 -1
  536. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.d.ts +0 -12
  537. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.d.ts.map +0 -1
  538. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.d.ts +0 -11
  539. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.d.ts.map +0 -1
  540. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.d.ts.map +0 -1
  541. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.d.ts +0 -9
  542. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.d.ts.map +0 -1
  543. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/reorderNetworks.d.ts.map +0 -1
  544. package/build/cjs/common/components/clusterConfiguration/AdvancedNetworkFields.js.map +0 -1
  545. package/build/cjs/common/components/ui/formik/LabelField.css +0 -43
  546. package/build/cjs/common/components/ui/formik/constants.js.map +0 -1
  547. package/build/cjs/common/components/ui/formik/validationSchemas.js +0 -571
  548. package/build/cjs/common/components/ui/formik/validationSchemas.js.map +0 -1
  549. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js +0 -53
  550. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js.map +0 -1
  551. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js +0 -124
  552. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js.map +0 -1
  553. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js.map +0 -1
  554. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.js.map +0 -1
  555. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js +0 -98
  556. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js.map +0 -1
  557. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/reorderNetworks.js.map +0 -1
  558. package/lib/common/components/ui/formik/LabelField.css +0 -43
  559. package/lib/common/components/ui/formik/validationSchemas.ts +0 -846
  560. package/lib/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.tsx +0 -208
  561. package/lib/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.tsx +0 -283
  562. /package/build/@types/{common/components/clusterConfiguration → cim/components/Hypershift/HostedClusterWizard/NetworkStep}/AdvancedNetworkFields.d.ts +0 -0
@@ -1,43 +0,0 @@
1
- .label-field__value {
2
- margin: 0 var(--pf-v6-global--spacer--sm) 0 0;
3
- }
4
-
5
- .label-field__input {
6
- border: 1px solid transparent;
7
- outline: none;
8
- width: 100%;
9
- background-color: initial;
10
- }
11
-
12
- .label-field__input::placeholder {
13
- color: var(--pf-v6-c-form-control--m-placeholder--Color);
14
- }
15
-
16
- .label-field .react-autosuggest__suggestions-list {
17
- margin-left: var(--pf-v6-global--spacer-xs);
18
- margin-right: var(--pf-v6-global--spacer-xs);
19
- box-shadow: var(--pf-v6-global--BoxShadow--lg);
20
-
21
- max-height: 10rem;
22
- overflow: auto;
23
- list-style-type: none;
24
- }
25
-
26
- .label-field .react-autosuggest__suggestion {
27
- cursor: pointer;
28
- }
29
-
30
- .label-field .react-autosuggest__suggestion--highlighted {
31
- /* TODO(mlibra): maybe a lighter color would be better */
32
- background-color: var(--pf-v6-global--primary-color--light-100);
33
- }
34
-
35
- .label-field .react-autosuggest__section-title {
36
- padding: 10px 0 0 10px;
37
- font-size: var(--pf-v6-global--FontSize--sm);
38
- color: var(--pf-v6-global--Color--200);
39
- }
40
-
41
- .label-field .react-tagsinput {
42
- width: 100%;
43
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../lib/common/components/ui/formik/constants.tsx"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAG,EAAE,CAAC;AAEnC,MAAM,6BAA6B,GAAG,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC;IAC9D,kBAAkB,EAAE,CAAC,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,+BAAuB,EAAE,CAAC;IACtF,kBAAkB,EAAE,CAAC,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,+BAAuB,EAAE,CAAC;IACtF,aAAa,EAAE,CAAC,CAAC,wDAAwD,CAAC;IAC1E,iBAAiB,EAAE,CAAC,CAAC,uDAAuD,CAAC;IAC7E,UAAU,EAAE,CAAC,CAAC,mBAAmB,CAAC;CACnC,CAAC,CAAC;AANU,QAAA,6BAA6B,iCAMvC;AAEI,MAAM,gCAAgC,GAAG,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC;IACjE,cAAc,EAAE,IAAA,qCAA6B,EAAC,CAAC,CAAC,CAAC,kBAAkB;IACnE,aAAa,EAAE,IAAA,qCAA6B,EAAC,CAAC,CAAC,CAAC,aAAa;IAC7D,iBAAiB,EAAE,IAAA,qCAA6B,EAAC,CAAC,CAAC,CAAC,iBAAiB;CACtE,CAAC,CAAC;AAJU,QAAA,gCAAgC,oCAI1C;AAEI,MAAM,sCAAsC,GAAG,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC;IACvE,cAAc,EAAE,IAAA,qCAA6B,EAAC,CAAC,CAAC,CAAC,kBAAkB;IACnE,aAAa,EAAE,IAAA,qCAA6B,EAAC,CAAC,CAAC,CAAC,aAAa;IAC7D,iBAAiB,EAAE,IAAA,qCAA6B,EAAC,CAAC,CAAC,CAAC,iBAAiB;IACrE,UAAU,EAAE,IAAA,qCAA6B,EAAC,CAAC,CAAC,CAAC,UAAU;CACxD,CAAC,CAAC;AALU,QAAA,sCAAsC,0CAKhD;AAEI,MAAM,gCAAgC,GAAG,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC;IACjE,cAAc,EAAE,IAAA,qCAA6B,EAAC,CAAC,CAAC,CAAC,kBAAkB;IACnE,aAAa,EAAE,IAAA,qCAA6B,EAAC,CAAC,CAAC,CAAC,aAAa;IAC7D,iBAAiB,EAAE,IAAA,qCAA6B,EAAC,CAAC,CAAC,CAAC,iBAAiB;IACrE,UAAU,EAAE,IAAA,qCAA6B,EAAC,CAAC,CAAC,CAAC,UAAU;CACxD,CAAC,CAAC;AALU,QAAA,gCAAgC,oCAK1C;AAEI,MAAM,sBAAsB,GAAG,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC;IACvD,cAAc,EAAE,CAAC,CAAC,qBAAqB,CAAC;IACxC,UAAU,EAAE,CAAC,CAAC,mBAAmB,CAAC;IAClC,aAAa,EAAE,CAAC,CAAC,iEAAiE,CAAC;IACnF,iBAAiB,EAAE,CAAC,CAAC,gEAAgE,CAAC;IACtF,cAAc,EAAE,CAAC,CAAC,uDAAuD,CAAC;CAC3E,CAAC,CAAC;AANU,QAAA,sBAAsB,0BAMhC;AAEI,MAAM,qBAAqB,GAAG,CAAC,CAAY,EAAE,EAAE,CAAC,iCAClD,IAAA,8BAAsB,EAAC,CAAC,CAAC,KAC5B,aAAa,EAAE,CAAC,CAAC,0DAA0D,CAAC,IAC5E,CAAC;AAHU,QAAA,qBAAqB,yBAG/B;AAEI,MAAM,0BAA0B,GAAG,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC;IAC3D,cAAc,EAAE,CAAC,CAAC,oBAAoB,CAAC;IACvC,UAAU,EAAE,CAAC,CAAC,mBAAmB,CAAC;IAClC,aAAa,EAAE,CAAC,CAAC,iEAAiE,CAAC;IACnF,iBAAiB,EAAE,CAAC,CAAC,gEAAgE,CAAC;IACtF,aAAa,EAAE,CAAC,CAAC,0DAA0D,CAAC;CAC7E,CAAC,CAAC;AANU,QAAA,0BAA0B,8BAMpC;AAEI,MAAM,0BAA0B,GAAG,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC;IAC3D,cAAc,EAAE,CAAC,CAAC,oBAAoB,CAAC;IACvC,aAAa,EAAE,CAAC,CAAC,uEAAuE,CAAC;IACzF,iBAAiB,EAAE,CAAC,CAAC,sDAAsD,CAAC;CAC7E,CAAC,CAAC;AAJU,QAAA,0BAA0B,8BAIpC;AAEI,MAAM,4BAA4B,GAAG,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC;IAC7D,aAAa,EAAE,CAAC,CACd,4GAA4G,CAC7G;CACF,CAAC,CAAC;AAJU,QAAA,4BAA4B,gCAItC;AAEU,QAAA,mBAAmB,GAAG;IACjC,WAAW;IACX,uBAAuB;IACvB,YAAY;IACZ,yBAAyB;IACzB,YAAY;IACZ,yBAAyB;CAC1B,CAAC"}
@@ -1,571 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IPv4ValidationSchema = exports.dualStackValidationSchema = exports.serviceNetworkValidationSchema = exports.clusterNetworksValidationSchema = exports.machineNetworksValidationSchema = exports.locationValidationSchema = exports.bmcAddressValidationSchema = exports.day2ApiVipValidationSchema = exports.ntpSourceValidationSchema = exports.noProxyValidationSchema = exports.httpProxyValidationSchema = exports.richHostnameValidationSchema = exports.richNameValidationSchema = exports.hostPrefixValidationSchema = exports.baseDomainValidationSchema = exports.dnsNameValidationSchema = exports.ipBlockValidationSchema = exports.vipArrayValidationSchema = exports.vipNoSuffixValidationSchema = exports.vipValidationSchema = exports.hostSubnetValidationSchema = exports.vipRangeValidationSchema = exports.macAddressValidationSchema = exports.ipNoSuffixValidationSchema = exports.ipValidationSchema = exports.pullSecretValidationSchema = exports.sshPublicKeyListValidationSchema = exports.sshPublicKeyValidationSchema = exports.nameValidationSchema = void 0;
4
- const tslib_1 = require("tslib");
5
- const cidr_tools_1 = require("cidr-tools");
6
- const ip_address_1 = require("ip-address");
7
- const is_cidr_1 = tslib_1.__importDefault(require("is-cidr"));
8
- const is_in_subnet_1 = require("is-in-subnet");
9
- const Yup = tslib_1.__importStar(require("yup"));
10
- const lodash_es_1 = require("lodash-es");
11
- const parse_url_1 = tslib_1.__importDefault(require("parse-url"));
12
- const constants_1 = require("../../../config/constants");
13
- const utils_1 = require("../../clusterConfiguration/utils");
14
- const constants_2 = require("./constants");
15
- const utils_2 = require("./utils");
16
- const utils_3 = require("../../../utils");
17
- const selectors_1 = require("../../../selectors");
18
- const ALPHANUMERIC_REGEX = /^[a-zA-Z0-9]+$/;
19
- const NAME_START_END_REGEX = /^[a-z0-9](.*[a-z0-9])?$/;
20
- const NAME_CHARS_REGEX = /^[a-z0-9-.]*$/;
21
- const CLUSTER_NAME_START_END_REGEX = /^[a-z0-9](.*[a-z0-9])?$/;
22
- const CLUSTER_NAME_VALID_CHARS_REGEX = /^[a-z0-9-]*$/;
23
- const SSH_PUBLIC_KEY_REGEX = /^(ssh-rsa AAAAB3NzaC1yc2|ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNT|ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzOD|ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1Mj|ssh-ed25519 AAAAC3NzaC1lZDI1NTE5|ssh-dss AAAAB3NzaC1kc3)[0-9A-Za-z+/]+[=]{0,3}( .*)?$/;
24
- const DNS_NAME_REGEX = /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/;
25
- const PROXY_DNS_REGEX = /(^\.?([a-zA-Z0-9_]{1}[a-zA-Z0-9_-]{0,62}){1}(\.[a-zA-Z0-9_]{1}[a-zA-Z0-9_-]{0,62})*$)/;
26
- const IP_V4_ZERO = '0.0.0.0';
27
- const IP_V6_ZERO = '0000:0000:0000:0000:0000:0000:0000:0000';
28
- const MAC_REGEX = /^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$/;
29
- const HOST_NAME_REGEX = /^[^.]{1,63}(?:[.][^.]{1,63})*$/;
30
- const LOCATION_CHARS_REGEX = /^[a-zA-Z0-9-._]*$/;
31
- const nameValidationSchema = (t, usedClusterNames, baseDnsDomain = '', validateUniqueName, isOcm = false) => {
32
- const clusterNameValidationMessagesList = (0, constants_2.clusterNameValidationMessages)(t);
33
- return Yup.string()
34
- .required(t('ai:Required field'))
35
- .matches(CLUSTER_NAME_VALID_CHARS_REGEX, {
36
- message: clusterNameValidationMessagesList.INVALID_VALUE,
37
- excludeEmptyString: true,
38
- })
39
- .matches(CLUSTER_NAME_START_END_REGEX, {
40
- message: clusterNameValidationMessagesList.INVALID_START_END,
41
- excludeEmptyString: true,
42
- })
43
- .min(isOcm ? 1 : 2, isOcm
44
- ? clusterNameValidationMessagesList.INVALID_LENGTH_OCM
45
- : clusterNameValidationMessagesList.INVALID_LENGTH_ACM)
46
- .max(constants_2.CLUSTER_NAME_MAX_LENGTH, isOcm
47
- ? clusterNameValidationMessagesList.INVALID_LENGTH_OCM
48
- : clusterNameValidationMessagesList.INVALID_LENGTH_ACM)
49
- .when('useRedHatDnsService', {
50
- is: (useRedHatDnsService) => useRedHatDnsService === true,
51
- then: (schema) => schema.test('is-name-unique', clusterNameValidationMessagesList.NOT_UNIQUE, (value) => {
52
- const clusterFullName = `${value || ''}.${baseDnsDomain}`;
53
- return !value || !usedClusterNames.includes(clusterFullName);
54
- }),
55
- otherwise: (schema) => schema.test('is-name-unique', clusterNameValidationMessagesList.NOT_UNIQUE, (value) => {
56
- // in CIM cluster name is ClusterDeployment CR name which must be unique
57
- return validateUniqueName ? !value || !usedClusterNames.includes(value) : true;
58
- }),
59
- });
60
- };
61
- exports.nameValidationSchema = nameValidationSchema;
62
- exports.sshPublicKeyValidationSchema = Yup.string().test('ssh-public-key', 'SSH public key must consist of "[TYPE] key [[EMAIL]]", supported types are: ssh-rsa, ssh-ed25519, ecdsa-[VARIANT]. A single key can be provided only.', (value) => {
63
- if (!value) {
64
- return true;
65
- }
66
- return !!(0, utils_2.trimSshPublicKey)(value).match(SSH_PUBLIC_KEY_REGEX);
67
- });
68
- exports.sshPublicKeyListValidationSchema = Yup.string()
69
- .test('ssh-public-keys', 'SSH public key must consist of "[TYPE] key [[EMAIL]]", supported types are: ssh-rsa, ssh-ed25519, ecdsa-[VARIANT].', (value) => {
70
- if (!value) {
71
- return true;
72
- }
73
- return ((0, utils_2.trimSshPublicKey)(value)
74
- .split('\n')
75
- .find((line) => !line.match(SSH_PUBLIC_KEY_REGEX)) === undefined);
76
- })
77
- .test('ssh-public-keys-unique', 'SSH public keys must be unique.', (value) => {
78
- if (!value) {
79
- return true;
80
- }
81
- const keyList = (0, utils_2.trimSshPublicKey)(value).split('\n');
82
- return new Set(keyList).size === keyList.length;
83
- });
84
- exports.pullSecretValidationSchema = Yup.string().test('is-well-formed-json', "Invalid pull secret format. You must use your Red Hat account's pull secret.", (value) => {
85
- const isValid = true;
86
- if (!value)
87
- return isValid;
88
- try {
89
- const pullSecret = JSON.parse(value);
90
- return (pullSecret.constructor.name === 'Object' &&
91
- !!(pullSecret === null || pullSecret === void 0 ? void 0 : pullSecret.auths) &&
92
- pullSecret.auths.constructor.name === 'Object');
93
- }
94
- catch (_a) {
95
- return !isValid;
96
- }
97
- });
98
- const isValidIpWithoutSuffix = (addr) => {
99
- const address = (0, utils_2.getAddress)(addr);
100
- return !!address && address.address === address.addressMinusSuffix;
101
- };
102
- exports.ipValidationSchema = Yup.string().test('ip-validation', 'Not a valid IP address', (value) => ip_address_1.Address4.isValid(value || '') || ip_address_1.Address6.isValid(value || ''));
103
- // Helpers to classify literal IPs more robustly
104
- const isIPv4Address = (ip) => {
105
- if (!ip)
106
- return false;
107
- return ip.includes('.') && ip_address_1.Address4.isValid(ip);
108
- };
109
- const isIPv6Address = (ip) => {
110
- if (!ip)
111
- return false;
112
- return ip.includes(':') && ip_address_1.Address6.isValid(ip);
113
- };
114
- exports.ipNoSuffixValidationSchema = Yup.string().test('ip-validation-no-suffix', 'Not a valid IP address', (value) => {
115
- return isValidIpWithoutSuffix(value || '');
116
- });
117
- exports.macAddressValidationSchema = Yup.string().matches(MAC_REGEX, {
118
- message: 'Value "${value}" is not valid MAC address.',
119
- excludeEmptyString: true,
120
- });
121
- const vipRangeValidationSchema = (hostSubnets, { machineNetworks, hostSubnet }, allowSuffix) => Yup.string().test('vip-validation', 'IP Address is outside of selected subnet', (value) => {
122
- if (!value) {
123
- return true;
124
- }
125
- try {
126
- const validator = allowSuffix ? exports.ipValidationSchema : exports.ipNoSuffixValidationSchema;
127
- validator.validateSync(value);
128
- }
129
- catch (err) {
130
- return true;
131
- }
132
- const foundHostSubnets = [];
133
- if (machineNetworks) {
134
- const cidrs = machineNetworks === null || machineNetworks === void 0 ? void 0 : machineNetworks.map((network) => network.cidr);
135
- foundHostSubnets.push(...hostSubnets.filter((hn) => cidrs === null || cidrs === void 0 ? void 0 : cidrs.includes(hn.subnet)));
136
- }
137
- else {
138
- const subnet = hostSubnets.find((hn) => hn.subnet === hostSubnet);
139
- if (subnet) {
140
- foundHostSubnets.push(subnet);
141
- }
142
- }
143
- for (const hostSubnet of foundHostSubnets) {
144
- if (hostSubnet === null || hostSubnet === void 0 ? void 0 : hostSubnet.subnet) {
145
- // Workaround for bug in CIM backend. hostIDs are empty
146
- if (!hostSubnet.hostIDs.length) {
147
- return true;
148
- }
149
- else if ((0, is_in_subnet_1.isInSubnet)(value, hostSubnet.subnet)) {
150
- return true;
151
- }
152
- }
153
- }
154
- return false;
155
- });
156
- exports.vipRangeValidationSchema = vipRangeValidationSchema;
157
- const vipUniqueValidationSchema = ({ ingressVips, apiVips, apiVip, ingressVip }, useIPArray) => Yup.string().test('vip-uniqueness-validation', 'The Ingress and API IP addresses cannot be the same.', (value) => {
158
- if (useIPArray) {
159
- if (!value || (ingressVips === null || ingressVips === void 0 ? void 0 : ingressVips.length) === 0 || (apiVips === null || apiVips === void 0 ? void 0 : apiVips.length) === 0) {
160
- return true;
161
- }
162
- return (0, selectors_1.selectApiVip)({ apiVips }) !== (0, selectors_1.selectIngressVip)({ ingressVips });
163
- }
164
- else {
165
- if (!value) {
166
- return true;
167
- }
168
- return apiVip !== ingressVip;
169
- }
170
- });
171
- const vipBroadcastValidationSchema = ({ machineNetworks }) => Yup.string().test('vip-no-broadcast', 'The IP address cannot be a network or broadcast address', (value) => {
172
- var _a;
173
- const vipAddress = (_a = (0, utils_2.getAddress)(value || '')) === null || _a === void 0 ? void 0 : _a.address;
174
- const machineNetwork = (0, utils_2.getAddress)(((machineNetworks === null || machineNetworks === void 0 ? void 0 : machineNetworks.length) && machineNetworks[0].cidr) || '');
175
- const machineNetworkBroadcast = machineNetwork === null || machineNetwork === void 0 ? void 0 : machineNetwork.endAddress().address;
176
- const machineNetworkAddress = machineNetwork === null || machineNetwork === void 0 ? void 0 : machineNetwork.startAddress().address;
177
- return vipAddress !== machineNetworkBroadcast && vipAddress !== machineNetworkAddress;
178
- });
179
- // like .required() but passes for initially empty field
180
- const requiredOnceSet = (initialValue, message) => Yup.string().test('required-once-set', message || 'The value is required.', (value) => !!value || !initialValue);
181
- exports.hostSubnetValidationSchema = Yup.string().when(['managedNetworkingType'], {
182
- is: (managedNetworkingType) => managedNetworkingType === 'clusterManaged',
183
- then: () => Yup.string().notOneOf([constants_1.NO_SUBNET_SET], 'Host subnet must be selected.'),
184
- });
185
- const vipValidationSchema = (hostSubnets, values, initialValue) => Yup.mixed().when(['vipDhcpAllocation', 'managedNetworkingType'], {
186
- is: (vipDhcpAllocation, managedNetworkingType) => !vipDhcpAllocation && managedNetworkingType !== 'userManaged',
187
- then: () => requiredOnceSet(initialValue, 'Required. Please provide an IP address')
188
- .concat((0, exports.vipRangeValidationSchema)(hostSubnets, values, true))
189
- .concat(vipUniqueValidationSchema(values, false)),
190
- });
191
- exports.vipValidationSchema = vipValidationSchema;
192
- const vipNoSuffixValidationSchema = (hostSubnets, values, initialValues) => Yup.mixed().when(['vipDhcpAllocation', 'managedNetworkingType'], {
193
- is: (vipDhcpAllocation, managedNetworkingType) => !vipDhcpAllocation && managedNetworkingType !== 'userManaged',
194
- then: () => {
195
- var _a;
196
- // Per-item schema for VIPs (apiVips[*].ip / ingressVips[*].ip)
197
- // 1) Require value once set
198
- // 2) Validate IP without suffix
199
- // 3) Ensure VIP family matches machineNetworks[idx] family
200
- // 4) Validate range vs selected subnets
201
- // 5) No broadcast/network address
202
- // 6) Uniqueness across API/Ingress
203
- const vipFamilyMatchSchema = Yup.string().test('vip-family-match-machine-network', 'IP family must match the corresponding machine network family.', function (value) {
204
- var _a, _b;
205
- if (!value) {
206
- return true;
207
- }
208
- // this.path looks like: "apiVips[0].ip" or "ingressVips[1].ip"
209
- const path = this.path || '';
210
- const match = path.match(/\[(\d+)\]/);
211
- const index = match ? parseInt(match[1], 10) : NaN;
212
- if (Number.isNaN(index)) {
213
- return true;
214
- }
215
- const cidr = ((_b = (_a = values.machineNetworks) === null || _a === void 0 ? void 0 : _a[index]) === null || _b === void 0 ? void 0 : _b.cidr) || '';
216
- const mnIsV4 = is_cidr_1.default.v4(cidr);
217
- const mnIsV6 = is_cidr_1.default.v6(cidr);
218
- // If machine network at index is not selected/valid, don't block validation here
219
- if (!mnIsV4 && !mnIsV6) {
220
- return true;
221
- }
222
- const ipIsV4 = isIPv4Address(value);
223
- const ipIsV6 = isIPv6Address(value);
224
- if (!ipIsV4 && !ipIsV6) {
225
- return true;
226
- }
227
- return mnIsV4 ? ipIsV4 : ipIsV6;
228
- });
229
- return requiredOnceSet((_a = (0, lodash_es_1.head)(initialValues)) === null || _a === void 0 ? void 0 : _a.ip, 'Required. Please provide an IP address')
230
- .concat(exports.ipNoSuffixValidationSchema)
231
- .concat(vipFamilyMatchSchema)
232
- .concat((0, exports.vipRangeValidationSchema)(hostSubnets, values, false))
233
- .concat(vipBroadcastValidationSchema(values))
234
- .concat(vipUniqueValidationSchema(values, true));
235
- },
236
- });
237
- exports.vipNoSuffixValidationSchema = vipNoSuffixValidationSchema;
238
- const vipArrayValidationSchema = (hostSubnets, values, initialValues) => (values.managedNetworkingType === 'clusterManaged'
239
- ? Yup.array().of(Yup.object({
240
- clusterId: Yup.string(),
241
- ip: (0, exports.vipNoSuffixValidationSchema)(hostSubnets, values, initialValues),
242
- }))
243
- : Yup.array())
244
- .test('vips-length', 'Both API and ingress APIs must be provided.', (_value) => { var _a, _b; return ((_a = values.apiVips) === null || _a === void 0 ? void 0 : _a.length) === ((_b = values.ingressVips) === null || _b === void 0 ? void 0 : _b.length); })
245
- .test('vips-match-machine-networks', 'Primary API and Ingress IPs must match the primary machine network family; secondary must match the secondary machine network family.', (_vips) => {
246
- const machineNetworks = values.machineNetworks || [];
247
- const validateIndex = (idx) => {
248
- var _a, _b, _c, _d, _e;
249
- const cidr = ((_a = machineNetworks[idx]) === null || _a === void 0 ? void 0 : _a.cidr) || '';
250
- const mIsIpv4 = is_cidr_1.default.v4(cidr);
251
- const mIsIpv6 = is_cidr_1.default.v6(cidr);
252
- if (!mIsIpv4 && !mIsIpv6) {
253
- return true;
254
- }
255
- const api = ((_c = (_b = values.apiVips) === null || _b === void 0 ? void 0 : _b[idx]) === null || _c === void 0 ? void 0 : _c.ip) || '';
256
- const ing = ((_e = (_d = values.ingressVips) === null || _d === void 0 ? void 0 : _d[idx]) === null || _e === void 0 ? void 0 : _e.ip) || '';
257
- if (!api || !ing) {
258
- return true;
259
- }
260
- const apiOk = mIsIpv4 ? isIPv4Address(api) : isIPv6Address(api);
261
- const ingOk = mIsIpv4 ? isIPv4Address(ing) : isIPv6Address(ing);
262
- return apiOk && ingOk;
263
- };
264
- const primaryOk = validateIndex(0);
265
- const secondaryOk = validateIndex(1);
266
- return primaryOk && secondaryOk;
267
- });
268
- exports.vipArrayValidationSchema = vipArrayValidationSchema;
269
- const ipBlockValidationSchema = (reservedCidrs) => Yup.string()
270
- .required('A value is required.')
271
- .test('valid-ip-address', 'Invalid IP address block. Expected value is a network expressed in CIDR notation (IP/netmask). For example: 123.123.123.0/24, 2055:d7a::/116', (value) => !!value && (is_cidr_1.default.v4(value) || is_cidr_1.default.v6(value)))
272
- .test('valid-netmask', 'IPv4 netmask must be between 1-25 and include at least 128 addresses.\nIPv6 netmask must be between 8-128 and include at least 256 addresses.', (value) => {
273
- const suffix = parseInt((value || '').split('/')[1]);
274
- return ((is_cidr_1.default.v4(value || '') && 0 < suffix && suffix < 26) ||
275
- (is_cidr_1.default.v6(value || '') && 7 < suffix && suffix < 129));
276
- })
277
- .test('cidr-is-not-unspecified', 'The specified CIDR is invalid because its resulting routing prefix matches the unspecified address.', (cidr) => {
278
- const ip = (0, utils_1.getSubnet)(cidr);
279
- if (ip === null) {
280
- return false;
281
- }
282
- // The first address is used to represent the network
283
- const startAddress = ip.startAddress().address;
284
- return startAddress !== IP_V4_ZERO && startAddress !== IP_V6_ZERO;
285
- })
286
- .test('valid-cidr-base-address', ({ value }) => `${value} is not a valid CIDR`, (cidr) => {
287
- const ip = (0, utils_1.getSubnet)(cidr);
288
- if (ip === null) {
289
- return false;
290
- }
291
- const networkAddress = ip.startAddress().parsedAddress;
292
- const ipAddress = ip.parsedAddress;
293
- const result = ipAddress.every((part, idx) => part === networkAddress[idx]);
294
- return result;
295
- })
296
- .test('cidrs-can-not-overlap', 'Provided CIDRs can not overlap.', (cidr) => {
297
- try {
298
- if (cidr && reservedCidrs && reservedCidrs.length > 0) {
299
- return !(0, cidr_tools_1.overlap)(cidr, reservedCidrs);
300
- }
301
- }
302
- catch (_a) {
303
- return false;
304
- }
305
- // passing by default
306
- return true;
307
- });
308
- exports.ipBlockValidationSchema = ipBlockValidationSchema;
309
- exports.dnsNameValidationSchema = Yup.string()
310
- .test('dns-name-label-length', 'Single label of the DNS name can not be longer than 63 characters.', (value) => (value || '').split('.').every((label) => label.length <= 63))
311
- .matches(DNS_NAME_REGEX, {
312
- message: 'Value "${value}" is not valid DNS name. Example: basedomain.example.com',
313
- excludeEmptyString: true,
314
- });
315
- exports.baseDomainValidationSchema = Yup.string().test('dns-name-label-length', 'Every single host component in the base domain name cannot contain more than 63 characters and must not contain spaces.', (value) => {
316
- // Check if the value contains any spaces
317
- if (/\s/.test(value)) {
318
- return false; // Value contains spaces, validation fails
319
- }
320
- // Check the label lengths
321
- const labels = (value || '').split('.');
322
- return labels.every((label) => label.length <= 63);
323
- });
324
- const hostPrefixValidationSchema = (clusterNetworkCidr) => {
325
- const requiredText = 'The host prefix is required.';
326
- const minMaxText = 'The host prefix is a number between 1 and 32 for IPv4 and between 8 and 128 for IPv6.';
327
- const netBlock = (clusterNetworkCidr || '').split('/')[1];
328
- if (!netBlock) {
329
- return Yup.number().required(requiredText).min(1, minMaxText).max(32, minMaxText);
330
- }
331
- let netBlockNumber = parseInt(netBlock);
332
- if (isNaN(netBlockNumber)) {
333
- netBlockNumber = 1;
334
- }
335
- const errorMsgPrefix = 'The host prefix is a number between size of the cluster network CIDR range';
336
- const errorMsgIPv4 = `${errorMsgPrefix} (${netBlockNumber}) and 25.`;
337
- const errorMsgIPv6 = `${errorMsgPrefix} (8) and 128.`;
338
- if (is_cidr_1.default.v6(clusterNetworkCidr || '')) {
339
- return Yup.number().required(requiredText).min(8, errorMsgIPv6).max(128, errorMsgIPv6);
340
- }
341
- if (is_cidr_1.default.v4(clusterNetworkCidr || '')) {
342
- return Yup.number()
343
- .required(requiredText)
344
- .min(netBlockNumber, errorMsgIPv4)
345
- .max(25, errorMsgIPv4);
346
- }
347
- return Yup.number().required(requiredText);
348
- };
349
- exports.hostPrefixValidationSchema = hostPrefixValidationSchema;
350
- const richNameValidationSchema = (t, usedNames, origName) => {
351
- const nameValidationMessagesList = (0, constants_2.nameValidationMessages)(t);
352
- return Yup.string()
353
- .min(1, nameValidationMessagesList.INVALID_LENGTH)
354
- .max(253, nameValidationMessagesList.INVALID_LENGTH)
355
- .test(nameValidationMessagesList.INVALID_START_END, nameValidationMessagesList.INVALID_START_END, (value) => {
356
- const trimmed = value === null || value === void 0 ? void 0 : value.trim();
357
- if (!trimmed) {
358
- return true;
359
- }
360
- return (!!trimmed[0].match(NAME_START_END_REGEX) &&
361
- (trimmed[trimmed.length - 1]
362
- ? !!trimmed[trimmed.length - 1].match(NAME_START_END_REGEX)
363
- : true));
364
- })
365
- .matches(HOST_NAME_REGEX, nameValidationMessagesList.INVALID_FORMAT)
366
- .matches(NAME_CHARS_REGEX, {
367
- message: nameValidationMessagesList.INVALID_VALUE,
368
- excludeEmptyString: true,
369
- })
370
- .test(nameValidationMessagesList.NOT_UNIQUE, nameValidationMessagesList.NOT_UNIQUE, (value) => {
371
- if (!value || value === origName) {
372
- return true;
373
- }
374
- return !usedNames.find((n) => n === value);
375
- })
376
- .notOneOf(constants_2.FORBIDDEN_HOSTNAMES, (0, constants_2.hostnameValidationMessages)(t).LOCALHOST_ERR);
377
- };
378
- exports.richNameValidationSchema = richNameValidationSchema;
379
- const richHostnameValidationSchema = (t, usedNames, origName) => {
380
- const hostnameValidationMessagesList = (0, constants_2.hostnameValidationMessages)(t);
381
- return Yup.string()
382
- .min(1, hostnameValidationMessagesList.INVALID_LENGTH)
383
- .max(63, hostnameValidationMessagesList.INVALID_LENGTH)
384
- .test(hostnameValidationMessagesList.INVALID_START_END, hostnameValidationMessagesList.INVALID_START_END, (value) => {
385
- const trimmed = value === null || value === void 0 ? void 0 : value.trim();
386
- if (!trimmed) {
387
- return true;
388
- }
389
- return (!!trimmed[0].match(NAME_START_END_REGEX) &&
390
- (trimmed[trimmed.length - 1]
391
- ? !!trimmed[trimmed.length - 1].match(NAME_START_END_REGEX)
392
- : true));
393
- })
394
- .matches(NAME_CHARS_REGEX, {
395
- message: hostnameValidationMessagesList.INVALID_VALUE,
396
- excludeEmptyString: true,
397
- })
398
- .test(hostnameValidationMessagesList.NOT_UNIQUE, hostnameValidationMessagesList.NOT_UNIQUE, (value) => {
399
- if (!value || value === origName) {
400
- return true;
401
- }
402
- return !usedNames.find((n) => n === value);
403
- })
404
- .notOneOf(constants_2.FORBIDDEN_HOSTNAMES, hostnameValidationMessagesList.LOCALHOST_ERR);
405
- };
406
- exports.richHostnameValidationSchema = richHostnameValidationSchema;
407
- const httpProxyValidationMessage = 'Provide a valid HTTP URL.';
408
- const httpProxyValidationSchema = ({ values, pairValueName, allowEmpty, }) => {
409
- const validation = Yup.string().test('http-proxy-validation', httpProxyValidationMessage, (value) => {
410
- if (!value) {
411
- return true;
412
- }
413
- if (!value.startsWith('http://')) {
414
- return false;
415
- }
416
- try {
417
- new URL(value);
418
- }
419
- catch (_a) {
420
- return false;
421
- }
422
- return true;
423
- });
424
- if (allowEmpty) {
425
- return validation;
426
- }
427
- return validation.test('http-proxy-no-empty-validation', 'At least one of the HTTP or HTTPS proxy URLs is required.', (value) => !values.enableProxy || !!value || !!values[pairValueName]);
428
- };
429
- exports.httpProxyValidationSchema = httpProxyValidationSchema;
430
- const isIPorDN = (value, dnsRegex = DNS_NAME_REGEX) => {
431
- if (value.match(dnsRegex)) {
432
- return true;
433
- }
434
- try {
435
- exports.ipValidationSchema.validateSync(value);
436
- return true;
437
- }
438
- catch (err) {
439
- return false;
440
- }
441
- };
442
- exports.noProxyValidationSchema = Yup.string().test('no-proxy-validation', 'Provide a comma separated list of valid DNS names or IP addresses.', (value) => {
443
- if (!value || value === '*') {
444
- return true;
445
- }
446
- // https://docs.openshift.com/container-platform/4.5/installing/installing_bare_metal/installing-restricted-networks-bare-metal.html#installation-configure-proxy_installing-restricted-networks-bare-metal
447
- // A comma-separated list of destination domain names, domains, IP addresses, or other network CIDRs to exclude proxying.
448
- // Preface a domain with . to match subdomains only. For example, .y.com matches x.y.com, but not y.com.
449
- // Use * to bypass proxy for all destinations.
450
- const noProxyList = (0, utils_2.trimCommaSeparatedList)(value).split(',');
451
- return noProxyList.every((p) => isIPorDN(p, PROXY_DNS_REGEX));
452
- });
453
- exports.ntpSourceValidationSchema = Yup.string()
454
- .test('ntp-source-validation', 'Provide a comma separated list of valid DNS names or IP addresses.', (value) => {
455
- if (!value || value === '') {
456
- return true;
457
- }
458
- return (0, utils_2.trimCommaSeparatedList)(value)
459
- .split(',')
460
- .every((v) => isIPorDN(v));
461
- })
462
- .test('ntp-source-validation-unique', 'DNS names and IP addresses must be unique.', (value) => {
463
- if (!value || value === '') {
464
- return true;
465
- }
466
- const arr = (0, utils_2.trimCommaSeparatedList)(value).split(',');
467
- return arr.length === new Set(arr).size;
468
- });
469
- exports.day2ApiVipValidationSchema = Yup.string().test('day2-api-vip', 'Provide a valid DNS name or IP Address', (value) => {
470
- if (!value) {
471
- return true;
472
- }
473
- return isIPorDN(value);
474
- });
475
- const bmcAddressValidationSchema = (t) => {
476
- const bmcAddressValidationMessagesList = (0, constants_2.bmcAddressValidationMessages)(t);
477
- return Yup.string()
478
- .required()
479
- .test('valid-bmc-address', bmcAddressValidationMessagesList.INVALID_VALUE, (val) => {
480
- try {
481
- const url = (0, parse_url_1.default)(val);
482
- return ['redfish-virtualmedia', 'idrac-virtualmedia'].includes(url.protocol);
483
- }
484
- catch (error) {
485
- return false;
486
- }
487
- });
488
- };
489
- exports.bmcAddressValidationSchema = bmcAddressValidationSchema;
490
- const locationValidationSchema = (t) => {
491
- const locationValidationMessagesList = (0, constants_2.locationValidationMessages)(t);
492
- return Yup.string()
493
- .min(1, locationValidationMessagesList.INVALID_LENGTH)
494
- .max(63, locationValidationMessagesList.INVALID_LENGTH)
495
- .test(locationValidationMessagesList.INVALID_START_END, locationValidationMessagesList.INVALID_START_END, (value) => {
496
- const trimmed = value === null || value === void 0 ? void 0 : value.trim();
497
- if (!trimmed) {
498
- return true;
499
- }
500
- return (!!trimmed[0].match(ALPHANUMERIC_REGEX) &&
501
- (trimmed[trimmed.length - 1]
502
- ? !!trimmed[trimmed.length - 1].match(ALPHANUMERIC_REGEX)
503
- : true));
504
- })
505
- .matches(LOCATION_CHARS_REGEX, {
506
- message: locationValidationMessagesList.INVALID_VALUE,
507
- excludeEmptyString: true,
508
- });
509
- };
510
- exports.locationValidationSchema = locationValidationSchema;
511
- exports.machineNetworksValidationSchema = Yup.array().of(Yup.object({ cidr: exports.hostSubnetValidationSchema, clusterId: Yup.string() }));
512
- exports.clusterNetworksValidationSchema = Yup.array().of(Yup.lazy((values) => Yup.object({
513
- cidr: (0, exports.ipBlockValidationSchema)(undefined /* So far used in OCM only and so validated by backend */),
514
- hostPrefix: (0, exports.hostPrefixValidationSchema)(values.cidr),
515
- clusterId: Yup.string(),
516
- })));
517
- exports.serviceNetworkValidationSchema = Yup.array().of(Yup.object({
518
- cidr: (0, exports.ipBlockValidationSchema)(undefined /* So far used in OCM only and so validated by backend */),
519
- clusterId: Yup.string(),
520
- }));
521
- const dualStackValidationSchema = (field, openshiftVersion) => Yup.array()
522
- .max(2, `Maximum number of ${field} subnets in dual stack is 2.`)
523
- .test('dual-stack-ipv4', openshiftVersion && (0, utils_3.isMajorMinorVersionEqualOrGreater)(openshiftVersion, '4.12')
524
- ? 'First network has to be a valid IPv4 or IPv6 subnet.'
525
- : 'First network has to be IPv4 subnet.', (values) => {
526
- // For OCP versions > 4.11, allow IPv6 as primary network
527
- if (openshiftVersion && (0, utils_3.isMajorMinorVersionEqualOrGreater)(openshiftVersion, '4.12')) {
528
- return !!(values === null || values === void 0 ? void 0 : values[0].cidr) && (is_cidr_1.default.v4(values[0].cidr) || is_cidr_1.default.v6(values[0].cidr));
529
- }
530
- // For older versions, require IPv4 as primary network
531
- return !!(values === null || values === void 0 ? void 0 : values[0].cidr) && is_cidr_1.default.v4(values[0].cidr);
532
- })
533
- .test('dual-stack-unique-cidrs', `Provided ${field} subnets must be unique.`, (values) => {
534
- var _a, _b;
535
- if (!values || values.length < 2) {
536
- return true;
537
- }
538
- const first = ((_a = values[0]) === null || _a === void 0 ? void 0 : _a.cidr) || '';
539
- const second = ((_b = values[1]) === null || _b === void 0 ? void 0 : _b.cidr) || '';
540
- if (!first || !second) {
541
- return true;
542
- }
543
- const firstIsCidr = is_cidr_1.default.v4(first) || is_cidr_1.default.v6(first);
544
- const secondIsCidr = is_cidr_1.default.v4(second) || is_cidr_1.default.v6(second);
545
- if (!firstIsCidr || !secondIsCidr) {
546
- return true;
547
- }
548
- return first !== second;
549
- })
550
- .test('dual-stack-opposite-families', `When two ${field} are provided, one must be IPv4 and the other IPv6.`, (values) => {
551
- var _a, _b;
552
- if (!values || values.length < 2) {
553
- return true;
554
- }
555
- const a = ((_a = values[0]) === null || _a === void 0 ? void 0 : _a.cidr) || '';
556
- const b = ((_b = values[1]) === null || _b === void 0 ? void 0 : _b.cidr) || '';
557
- if (!a || !b) {
558
- return true;
559
- }
560
- const a4 = is_cidr_1.default.v4(a);
561
- const a6 = is_cidr_1.default.v6(a);
562
- const b4 = is_cidr_1.default.v4(b);
563
- const b6 = is_cidr_1.default.v6(b);
564
- if (!((a4 || a6) && (b4 || b6))) {
565
- return true;
566
- }
567
- return (a4 && b6) || (a6 && b4);
568
- });
569
- exports.dualStackValidationSchema = dualStackValidationSchema;
570
- exports.IPv4ValidationSchema = Yup.array().test('single-stack', `All network subnets must be IPv4.`, (values) => (0, utils_2.allSubnetsIPv4)(values));
571
- //# sourceMappingURL=validationSchemas.js.map