diff --git a/node_modules b/node_modules index 3b55d1f7801f..18dcbac92aa9 160000 --- a/node_modules +++ b/node_modules @@ -1 +1 @@ -Subproject commit 3b55d1f7801f47e570e16a81bc3aef519c9f7612 +Subproject commit 18dcbac92aa94a9d6221577c87da4de76d64d084 diff --git a/package.json b/package.json index 05dfebd5d513..7bc63d5d5104 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,6 @@ "react-dom": "18.3.1", "remarkable": "2.0.1", "throttle-debounce": "5.0.2", - "uuid": "11.0.5", "@xterm/xterm": "5.5.0", "@xterm/addon-canvas": "0.7.0" }, diff --git a/pkg/networkmanager/bond.jsx b/pkg/networkmanager/bond.jsx index 80956bd7b07a..c77c957f7d2b 100644 --- a/pkg/networkmanager/bond.jsx +++ b/pkg/networkmanager/bond.jsx @@ -30,7 +30,6 @@ import { MacMenu, MemberInterfaceChoices, NetworkModal, Name, dialogSave } from import { ModelContext } from './model-context.jsx'; import { useDialogs } from "dialogs.jsx"; -import { v4 as uuidv4 } from 'uuid'; import { member_connection_for_interface, member_interface_choices, @@ -217,7 +216,7 @@ export const getGhostSettings = ({ newIfaceName }) => { id: newIfaceName, autoconnect: true, type: "bond", - uuid: uuidv4(), + uuid: window.crypto.randomUUID(), interface_name: newIfaceName, }, bond: { diff --git a/pkg/networkmanager/bridge.jsx b/pkg/networkmanager/bridge.jsx index 3ddf44ac6796..688537c25a11 100644 --- a/pkg/networkmanager/bridge.jsx +++ b/pkg/networkmanager/bridge.jsx @@ -28,7 +28,6 @@ import { MemberInterfaceChoices, NetworkModal, Name, dialogSave } from './dialog import { ModelContext } from './model-context.jsx'; import { useDialogs } from "dialogs.jsx"; -import { v4 as uuidv4 } from 'uuid'; import { member_connection_for_interface, member_interface_choices, @@ -130,7 +129,7 @@ export const getGhostSettings = ({ newIfaceName }) => { id: newIfaceName, autoconnect: true, type: "bridge", - uuid: uuidv4(), + uuid: window.crypto.randomUUID(), interface_name: newIfaceName }, bridge: { diff --git a/pkg/networkmanager/interfaces.js b/pkg/networkmanager/interfaces.js index c1d0512a6afc..9592f00425de 100644 --- a/pkg/networkmanager/interfaces.js +++ b/pkg/networkmanager/interfaces.js @@ -23,7 +23,6 @@ import { Button } from "@patternfly/react-core/dist/esm/components/Button/index. import { fmt_to_fragments } from 'utils.jsx'; import * as utils from './utils.js'; -import { v4 as uuidv4 } from 'uuid'; import "./networking.scss"; @@ -1420,7 +1419,7 @@ export function complete_settings(settings, device) { } settings.connection.id = device.Interface; - settings.connection.uuid = uuidv4(); + settings.connection.uuid = window.crypto.randomUUID(); if (device.DeviceType == 'ethernet') { settings.connection.type = '802-3-ethernet'; diff --git a/pkg/networkmanager/team.jsx b/pkg/networkmanager/team.jsx index ecd707621da3..b817f5a95f8f 100644 --- a/pkg/networkmanager/team.jsx +++ b/pkg/networkmanager/team.jsx @@ -28,7 +28,6 @@ import { MemberInterfaceChoices, NetworkModal, Name, dialogSave } from './dialog import { ModelContext } from './model-context.jsx'; import { useDialogs } from "dialogs.jsx"; -import { v4 as uuidv4 } from 'uuid'; import { member_connection_for_interface, member_interface_choices, @@ -216,7 +215,7 @@ export const getGhostSettings = ({ newIfaceName }) => { id: newIfaceName, autoconnect: true, type: "team", - uuid: uuidv4(), + uuid: window.crypto.randomUUID(), interface_name: newIfaceName, }, team: { diff --git a/pkg/networkmanager/vlan.jsx b/pkg/networkmanager/vlan.jsx index 067aa0e46da2..21ce07d77b1f 100644 --- a/pkg/networkmanager/vlan.jsx +++ b/pkg/networkmanager/vlan.jsx @@ -28,7 +28,6 @@ import { Name, NetworkModal, dialogSave } from './dialogs-common.jsx'; import { ModelContext } from './model-context.jsx'; import { useDialogs } from "dialogs.jsx"; -import { v4 as uuidv4 } from 'uuid'; import { is_interface_connection, is_interesting_interface, @@ -122,7 +121,7 @@ export const getGhostSettings = () => { id: "", autoconnect: true, type: "vlan", - uuid: uuidv4(), + uuid: window.crypto.randomUUID(), interface_name: "" }, vlan: {