style: sort imports in compute node modules

This commit is contained in:
Mark Paronyan committed 2026-10-02 12:43:26 +03:00
1 parent a77e06b907
commit 38e9ddca09
35 files changed
+198 -205

No files matched your search

+5 -6
View File
@@ -19,25 +19,24 @@ Qemu server module.
"""
import asyncio
import logging
import os
import platform
import shutil
import shlex
import sys
import re
import shlex
import shutil
import subprocess
import sys
from ...utils.asyncio import subprocess_check_output
from ...utils.get_resource import get_resource
from ..base_manager import BaseManager
from ..error import NodeError, ImageMissingError
from ..error import ImageMissingError, NodeError
from .qemu_error import QemuError
from .qemu_vm import QemuVM
from .utils.guest_cid import get_next_guest_cid
from .utils.ziputils import unpack_zip
import logging
log = logging.getLogger(__name__)
+25 -25
View File
@@ -19,40 +19,40 @@ QEMU VM management (creates command line, processes, files etc.) in
order to run a QEMU VM.
"""
import sys
import asyncio
import json
import logging
import math
import os
import re
import math
import shutil
import struct
import asyncio
import socket
import gns3server
import subprocess
import time
import json
import shlex
import shutil
import socket
import struct
import subprocess
import sys
import time
from pathlib import Path
import psutil
from pathlib import Path
import gns3server
from gns3server.schemas.compute.qemu_nodes import Qemu, QemuPlatform
from gns3server.utils import parse_version
from gns3server.utils.asyncio import subprocess_check_output, cancellable_wait_run_in_executor
from gns3server.utils.asyncio import cancellable_wait_run_in_executor, subprocess_check_output
from ...utils import int_to_macaddress, is_ipv6_enabled, macaddress_to_int
from ...utils.asyncio import monitor_process
from ...utils.hostname import is_rfc1123_hostname_valid
from ...utils.images import md5sum
from ..adapters.ethernet_adapter import EthernetAdapter
from ..base_node import BaseNode
from ..error import ImageMissingError, NodeError
from ..nios.nio_tap import NIOTAP
from ..nios.nio_udp import NIOUDP
from .qemu_error import QemuError
from .utils.qcow2 import Qcow2, Qcow2Error
from .utils.ziputils import pack_zip, unpack_zip
from ..adapters.ethernet_adapter import EthernetAdapter
from ..error import NodeError, ImageMissingError
from ..nios.nio_udp import NIOUDP
from ..nios.nio_tap import NIOTAP
from ..base_node import BaseNode
from ...utils.asyncio import monitor_process
from ...utils.images import md5sum
from ...utils import macaddress_to_int, int_to_macaddress, is_ipv6_enabled
from ...utils.hostname import is_rfc1123_hostname_valid
from gns3server.schemas.compute.qemu_nodes import Qemu, QemuPlatform
import logging
log = logging.getLogger(__name__)
+2 -2
View File
@@ -14,10 +14,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from ..qemu_error import QemuError
import logging
from ..qemu_error import QemuError
log = logging.getLogger(__name__)
+1 -1
View File
@@ -15,9 +15,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import asyncio
import json
import os
import asyncio
import struct
+1 -1
View File
@@ -16,8 +16,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import time
import shutil
import time
import zipfile