mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov-ui.git
synced 2025-11-02 19:47:57 +00:00
[WIFI-11306] Added key-caching field to encryption config
Signed-off-by: Charles <charles.bourque96@gmail.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import { ENCRYPTION_OPTIONS } from '../../../interfacesConstants';
|
|||||||
import Radius from './Radius';
|
import Radius from './Radius';
|
||||||
import SelectField from 'components/FormFields/SelectField';
|
import SelectField from 'components/FormFields/SelectField';
|
||||||
import StringField from 'components/FormFields/StringField';
|
import StringField from 'components/FormFields/StringField';
|
||||||
|
import ToggleField from 'components/FormFields/ToggleField';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
editing: boolean;
|
editing: boolean;
|
||||||
@@ -68,6 +69,13 @@ const EncryptionForm = ({
|
|||||||
w="120px"
|
w="120px"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
<ToggleField
|
||||||
|
name={`${namePrefix}.key-caching`}
|
||||||
|
label="key-caching"
|
||||||
|
definitionKey="interface.ssid.encryption.key-caching"
|
||||||
|
isDisabled={!editing}
|
||||||
|
defaultValue
|
||||||
|
/>
|
||||||
</SimpleGrid>
|
</SimpleGrid>
|
||||||
{isUsingRadius && <Radius editing={editing} namePrefix={radiusPrefix} isPasspoint={isPasspoint} />}
|
{isUsingRadius && <Radius editing={editing} namePrefix={radiusPrefix} isPasspoint={isPasspoint} />}
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -56,6 +56,14 @@ const LockedEncryption = ({ data }) => {
|
|||||||
isRequired
|
isRequired
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
<DisplayToggleField
|
||||||
|
value={data?.encryption?.['key-caching']}
|
||||||
|
label="key-caching"
|
||||||
|
definitionKey="interface.ssid.encryption.key-caching"
|
||||||
|
isDisabled
|
||||||
|
isRequired
|
||||||
|
hideButton
|
||||||
|
/>
|
||||||
</SimpleGrid>
|
</SimpleGrid>
|
||||||
)}
|
)}
|
||||||
{data?.radius && (
|
{data?.radius && (
|
||||||
|
|||||||
@@ -321,6 +321,7 @@ export const INTERFACE_SSID_ENCRYPTION_SCHEMA = (t, useDefault = false) => {
|
|||||||
return v.length >= 8 && v.length <= 63;
|
return v.length >= 8 && v.length <= 63;
|
||||||
})
|
})
|
||||||
.default(''),
|
.default(''),
|
||||||
|
'key-caching': bool().default(true),
|
||||||
})
|
})
|
||||||
.default({
|
.default({
|
||||||
proto: 'psk',
|
proto: 'psk',
|
||||||
|
|||||||
Reference in New Issue
Block a user