diff --git a/libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx b/libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx index 7a5fef1fe0..9be161da8d 100644 --- a/libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +++ b/libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx @@ -39,6 +39,7 @@ import { ExternalPlatformDropdown, ExternalPlatformType } from './ExternalPlatfo import { useOracleDropdownItemState } from '../../hooks/useOracleDropdownItemState'; import { useClusterWizardContext } from '../clusterWizard/ClusterWizardContext'; import { HostsNetworkConfigurationType } from '../../services/types'; +import { useNewFeatureSupportLevel } from '../../../common/components/newFeatureSupportLevels'; export type OcmClusterDetailsFormFieldsProps = { forceOpenshiftVersion?: string; @@ -108,7 +109,7 @@ export const OcmClusterDetailsFormFields = ({ featureSupportLevelData, values.cpuArchitecture, ); - + const featureSupportLevelContext = useNewFeatureSupportLevel(); React.useEffect(() => { nameInputRef.current?.focus(); }, []); @@ -136,6 +137,17 @@ export const OcmClusterDetailsFormFields = ({ [clusterWizardContext, setFieldValue], ); + React.useEffect(() => { + setFieldValue( + 'isCMNSupported', + featureSupportLevelContext.isFeatureSupported( + 'CLUSTER_MANAGED_NETWORKING', + featureSupportLevelData ?? undefined, + ), + false, + ); + }, [setFieldValue, featureSupportLevelContext, featureSupportLevelData]); + return (