gns3-server 3.0.4__py3-none-any.whl → 3.0.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of gns3-server might be problematic. Click here for more details.
- gns3_server-3.0.5.dist-info/METADATA +202 -0
- {gns3_server-3.0.4.dist-info → gns3_server-3.0.5.dist-info}/RECORD +38 -33
- {gns3_server-3.0.4.dist-info → gns3_server-3.0.5.dist-info}/WHEEL +1 -1
- gns3server/api/routes/compute/cloud_nodes.py +1 -1
- gns3server/api/routes/controller/images.py +0 -5
- gns3server/api/routes/controller/links.py +52 -1
- gns3server/appliances/almalinux.gns3a +30 -0
- gns3server/appliances/arista-veos.gns3a +15 -15
- gns3server/appliances/aruba-arubaoscx.gns3a +39 -0
- gns3server/appliances/asterfusion-vAsterNOS-campus.gns3a +50 -0
- gns3server/appliances/asterfusion-vAsterNOS.gns3a +1 -1
- gns3server/appliances/centos-cloud.gns3a +24 -54
- gns3server/appliances/exos.gns3a +13 -0
- gns3server/appliances/fedora-cloud.gns3a +30 -0
- gns3server/appliances/infix.gns3a +48 -5
- gns3server/appliances/juniper-vJunos-router.gns3a +75 -0
- gns3server/appliances/nethsecurity.gns3a +44 -0
- gns3server/appliances/oracle-linux-cloud.gns3a +31 -1
- gns3server/appliances/rhel.gns3a +57 -1
- gns3server/appliances/rockylinux.gns3a +15 -0
- gns3server/compute/builtin/nodes/nat.py +1 -1
- gns3server/compute/docker/__init__.py +8 -9
- gns3server/compute/docker/docker_vm.py +2 -1
- gns3server/compute/qemu/qemu_vm.py +69 -28
- gns3server/controller/compute.py +4 -3
- gns3server/controller/gns3vm/virtualbox_gns3_vm.py +55 -28
- gns3server/crash_report.py +1 -1
- gns3server/disks/OVMF_CODE_4M.fd +0 -0
- gns3server/disks/OVMF_VARS_4M.fd +0 -0
- gns3server/schemas/__init__.py +1 -1
- gns3server/schemas/controller/links.py +21 -0
- gns3server/static/web-ui/index.html +1 -1
- gns3server/static/web-ui/main.fd9d76d279fa7d5e.js +1 -0
- gns3server/utils/images.py +10 -0
- gns3server/version.py +2 -2
- gns3_server-3.0.4.dist-info/METADATA +0 -869
- gns3server/static/web-ui/main.87178dd64c9c79ba.js +0 -1
- {gns3_server-3.0.4.dist-info → gns3_server-3.0.5.dist-info}/entry_points.txt +0 -0
- {gns3_server-3.0.4.dist-info → gns3_server-3.0.5.dist-info/licenses}/LICENSE +0 -0
- {gns3_server-3.0.4.dist-info → gns3_server-3.0.5.dist-info}/top_level.txt +0 -0
gns3server/utils/images.py
CHANGED
|
@@ -342,6 +342,12 @@ async def write_image(
|
|
|
342
342
|
allow_raw_image=False
|
|
343
343
|
) -> models.Image:
|
|
344
344
|
|
|
345
|
+
db_image = await images_repo.get_image(image_path)
|
|
346
|
+
if db_image and os.path.exists(image_path):
|
|
347
|
+
# the image already exists in the database and on disk
|
|
348
|
+
log.info(f"Image {image_path} already exists")
|
|
349
|
+
return db_image
|
|
350
|
+
|
|
345
351
|
image_dir, image_name = os.path.split(image_filename)
|
|
346
352
|
log.info(f"Writing image file to '{image_path}'")
|
|
347
353
|
# Store the file under its final name only when the upload is completed
|
|
@@ -381,6 +387,10 @@ async def write_image(
|
|
|
381
387
|
except OSError:
|
|
382
388
|
log.warning(f"Could not remove '{tmp_path}'")
|
|
383
389
|
|
|
390
|
+
if db_image:
|
|
391
|
+
# the image already exists in the database, no need to add it again
|
|
392
|
+
return db_image
|
|
393
|
+
|
|
384
394
|
return await images_repo.add_image(
|
|
385
395
|
image_name,
|
|
386
396
|
image_type,
|
gns3server/version.py
CHANGED
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
# or negative for a release candidate or beta (after the base version
|
|
23
23
|
# number has been incremented)
|
|
24
24
|
|
|
25
|
-
__version__ = "3.0.
|
|
26
|
-
__version_info__ = (3, 0,
|
|
25
|
+
__version__ = "3.0.5"
|
|
26
|
+
__version_info__ = (3, 0, 5, 0)
|
|
27
27
|
|
|
28
28
|
if "dev" in __version__:
|
|
29
29
|
try:
|