YueGuobin
f6777064db
feat(ports): add null checks for port name in short name generation
...
Add conditional checks to ensure `self._name` is not None before performing string operations in the `short_name` property. This prevents potential AttributeError exceptions when port name is undefined, improving robustness and compatibility with edge cases in port configuration.
2026-02-25 22:21:05 +08:00
grossmj
722512d851
Remove model validator. Fixes https://github.com/GNS3/gns3-gui/issues/3522
...
Default port name and port segment size are already set in the code when a new node is created.
2023-10-15 11:16:05 +10:00
grossmj
cefab8d362
Rename __json__() to asdict()
2021-04-17 23:34:28 +09:30
grossmj
c021e21309
Use black with -l 120 param.
2021-04-13 18:46:50 +09:30
grossmj
f928738bd5
Use pyupgrade with --py36-plus param.
2021-04-13 18:37:58 +09:30
grossmj
eb3cb8a41f
Migration to FastAPI
2020-10-02 16:07:50 +09:30
grossmj
ea17cc2565
Fix issue when cannot skip slots for Dynamips routers. Fixes https://github.com/GNS3/gns3-gui/issues/3000
2020-06-29 20:00:30 +09:30
grossmj
9de13c570c
Merge branch '2.1' into 2.2
...
# Conflicts:
# gns3server/compute/builtin/nodes/cloud.py
# gns3server/compute/docker/docker_vm.py
# gns3server/compute/dynamips/nodes/ethernet_switch.py
# gns3server/compute/iou/iou_vm.py
# gns3server/compute/qemu/qemu_vm.py
# gns3server/compute/virtualbox/virtualbox_vm.py
# gns3server/compute/vmware/vmware_vm.py
# gns3server/controller/__init__.py
# gns3server/version.py
# gns3server/web/web_server.py
2018-10-04 15:44:13 +02:00
grossmj
c620d0be84
Improve the invalid port format detection. Fixes https://github.com/GNS3/gns3-gui/issues/2580
2018-09-05 13:35:42 +08:00
grossmj
33e8710495
Merge branch '2.1' into 2.2
...
# Conflicts:
# gns3server/compute/docker/docker_vm.py
# gns3server/controller/compute.py
# gns3server/controller/gns3vm/__init__.py
# gns3server/controller/link.py
# gns3server/controller/project.py
# gns3server/handlers/api/controller/project_handler.py
# gns3server/handlers/api/controller/server_handler.py
# gns3server/utils/asyncio/__init__.py
# gns3server/utils/asyncio/telnet_server.py
# gns3server/version.py
# gns3server/web/web_server.py
# tests/compute/qemu/test_qemu_vm.py
2018-08-29 15:57:54 +07:00
grossmj
59ce105a50
Fix exception with short names for Dynamips interfaces. Fixes #1386 .
2018-08-21 19:46:14 +07:00
grossmj
dac3ba19b7
Merge branch '2.1' into 2.2
...
# Conflicts:
# gns3server/controller/ports/port_factory.py
2018-08-13 22:06:44 +07:00
grossmj
23e83b730b
Fix some more problems with interface short names. Fixes https://github.com/GNS3/gns3-gui/issues/2562
2018-08-13 15:45:24 +07:00
grossmj
e5d38811ca
Fix incorrect short port names in topology summary. Fixes https://github.com/GNS3/gns3-gui/issues/2562
2018-08-13 15:10:21 +07:00
grossmj
ee5317948b
Fix tests.
2018-04-06 14:32:06 +07:00
grossmj
7622c10cc9
Returns the ports' adapter types and mac addresses when available.
2018-04-06 13:19:17 +07:00
grossmj
757c103c03
Possibility to customize port names and adapter types for Qemu, VirtualBox, VMware and Docker. Fixes #2361 .
...
MAC addresses can customized for Qemu as well.
2018-04-02 22:27:12 +07:00
grossmj
90ce6093d8
Some spring cleaning.
2018-03-15 14:17:39 +07:00
Julien Duponchelle
5721dd3f30
Fix port numbering for Wic slot 1 & 2
2017-05-12 14:12:24 +02:00
Julien Duponchelle
19a6157f64
Fix wic numbering
...
Fix #1011
2017-05-12 09:48:05 +02:00
Julien Duponchelle
5409d9c3f8
Fix some port short name display issues
...
Fix https://github.com/GNS3/gns3-gui/issues/1940
2017-03-20 18:10:00 +01:00
Julien Duponchelle
6a91804116
Catch error when you provide an invalid port name formating
...
Fix #909
2017-02-22 18:03:26 +01:00
Julien Duponchelle
41d32a5f71
Fix Wrong slot numbering on IOS router
...
Fix #1762
2017-01-09 18:04:54 +01:00
Julien Duponchelle
58287b3638
Fix wrong short label for ethernet switch, hub & VPCS
...
Fix https://github.com/GNS3/gns3-gui/issues/1764
2017-01-09 16:48:42 +01:00
Julien Duponchelle
955a466be5
Ensure we can't connect to occupy port
...
Ref https://github.com/GNS3/gns3-gui/issues/1759
2017-01-06 10:29:56 +01:00
Julien Duponchelle
c06d2e3118
Fix short label diplay instead of custom interface labels
...
Fix https://github.com/GNS3/gns3-gui/issues/1742 , https://github.com/GNS3/gns3-gui/issues/1752
2017-01-05 16:55:31 +01:00
Julien Duponchelle
afb7eca27a
Fix port naming for atm switch
...
Fix #735
2016-10-26 12:03:54 +02:00
Julien Duponchelle
cf3ed5a329
Fix port naming for FrameRelay switch
...
Fix #735
2016-10-26 11:59:16 +02:00
Julien Duponchelle
1f44e08cdd
Fix naming of IOU serial interfaces
...
Fix #737
2016-10-25 15:26:36 +02:00
Julien Duponchelle
cb0a7c6a3f
Fix connection issue with IOU when a device as serial link
...
Fix https://github.com/GNS3/gns3-gui/issues/1566
2016-10-17 00:06:34 +02:00
Julien Duponchelle
da5e3d0e54
Dissallow serial to ethernet connection
...
Fix #678
2016-09-15 14:51:40 +02:00
Julien Duponchelle
5d12a91268
Fix Serial interface not available for IOU
...
Fix https://github.com/GNS3/gns3-gui/issues/1512
2016-09-15 11:49:41 +02:00
Julien Duponchelle
2f0e2260ab
Move the generation of the list of ports to the server
...
Ref #676
2016-09-14 15:21:37 +02:00