mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-26 06:50:09 +03:00
M #~: remove external (#2473)
(cherry picked from commit 880f1adc6e63f0eb3db33c7179d226d58d943f14)
This commit is contained in:
parent
1086764446
commit
31a47e37a7
@ -13,32 +13,32 @@
|
||||
* See the License for the specific language governing permissions and *
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
import { boolean, number, string, ObjectSchema } from 'yup'
|
||||
import { ObjectSchema, boolean, number, string } from 'yup'
|
||||
|
||||
import {
|
||||
Field,
|
||||
Section,
|
||||
filterFieldsByHypervisor,
|
||||
filterFieldsByDriver,
|
||||
getObjectSchemaFromFields,
|
||||
arrayToOptions,
|
||||
} from 'client/utils'
|
||||
import {
|
||||
T,
|
||||
INPUT_TYPES,
|
||||
HYPERVISORS,
|
||||
VN_DRIVERS,
|
||||
Nic,
|
||||
NIC_HARDWARE,
|
||||
NIC_HARDWARE_STR,
|
||||
PCI_TYPES,
|
||||
} from 'client/constants'
|
||||
import { useGetHostsQuery } from 'client/features/OneApi/host'
|
||||
import { getPciDevices } from 'client/models/Host'
|
||||
import {
|
||||
getPciAttributes,
|
||||
transformPciToString,
|
||||
} from 'client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/inputOutput/pciDevicesSchema'
|
||||
import {
|
||||
HYPERVISORS,
|
||||
INPUT_TYPES,
|
||||
NIC_HARDWARE,
|
||||
NIC_HARDWARE_STR,
|
||||
Nic,
|
||||
PCI_TYPES,
|
||||
T,
|
||||
VN_DRIVERS,
|
||||
} from 'client/constants'
|
||||
import { useGetHostsQuery } from 'client/features/OneApi/host'
|
||||
import { getPciDevices } from 'client/models/Host'
|
||||
import {
|
||||
Field,
|
||||
Section,
|
||||
arrayToOptions,
|
||||
filterFieldsByDriver,
|
||||
filterFieldsByHypervisor,
|
||||
getObjectSchemaFromFields,
|
||||
} from 'client/utils'
|
||||
|
||||
import { useDisableInputByUserAndConfig } from 'client/features/Auth'
|
||||
|
||||
@ -98,16 +98,6 @@ const GENERAL_FIELDS = ({ nics = [] } = {}) =>
|
||||
.default(() => undefined),
|
||||
grid: { sm: 6 },
|
||||
},
|
||||
{
|
||||
name: 'EXTERNAL',
|
||||
label: T.External,
|
||||
tooltip: T.ExternalConcept,
|
||||
type: INPUT_TYPES.SWITCH,
|
||||
dependOf: 'PARENT',
|
||||
htmlType: (parent) => !parent?.length && INPUT_TYPES.HIDDEN,
|
||||
validation: boolean().yesOrNo(),
|
||||
grid: { sm: 6 },
|
||||
},
|
||||
].filter(Boolean)
|
||||
|
||||
const GUACAMOLE_CONNECTIONS = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user