YueGuobin
0ed1715fe6
Use typed InterfaceStatus enum and simplify stats fallback in interfaces()
...
- Change `status: str` to `status: InterfaceStatus` (str Enum) in the
HostInterface schema, matching the existing IPAddressFamily pattern.
- Use default-then-override pattern in interfaces() to eliminate the
`else` branch and deduplicate defaults.
2026-07-10 14:55:21 +08:00
YueGuobin
9721660cc3
Expose full interface address list and link state in cloud node API
...
Each host interface surfaced by the cloud node now reports:
- ip_addresses: every IPv4 and IPv6 address (previously only a single
IPv4 was collected internally and then dropped before the response)
- status / speed / mtu / flags: operational state and link attributes
sourced from psutil.net_if_stats(), with flags normalized to a list
The legacy ip_address / netmask / mac_address fields are preserved so
existing callers (compute link detection, GNS3 VM, VMware, has_netmask)
keep working. The new fields travel through the existing interfaces
payload that the controller forwards verbatim, so no controller-side
change is required and the PUT / ports_mapping flow is unaffected.
2026-07-10 13:56:07 +08:00
grossmj
74c675d5b0
Drop Windows support
2022-01-19 22:28:36 +10: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
30ebae207f
Use Pydantic to validate the server config file.
2021-04-12 17:02:23 +09:30
grossmj
a92c47b310
Add HTTP client to reuse the aiohttp session where needed.
...
Remove unnecessary aiohttp exceptions.
2020-10-22 16:19:44 +10:30
grossmj
2af9127879
Fix issue when linking to more than one NAT node with allowed_interface option enabled. Fixes #1671
2019-10-31 17:07:52 +08:00
grossmj
d419d3fa39
Check if the HAXM service is running when starting a Qemu VM with hardware acceleration. Ref #1242 .
2018-03-24 22:15:20 +07:00
grossmj
08493871a5
Restrict the list of available Ethernet/TAP adapters. Fixes #352 .
2018-03-15 16:33:23 +07:00
grossmj
90ce6093d8
Some spring cleaning.
2018-03-15 14:17:39 +07:00
Julien Duponchelle
2dc83d7894
Interface starting with gns3 are not display by default in the cloud
...
Fix https://github.com/GNS3/gns3-gui/issues/2199
2017-08-03 16:33:42 +02:00
Julien Duponchelle
e8a35ac41f
Interface ending with -nic are special ethernet interface
...
It's libvirt internal stuff
Fix #1114
2017-07-12 16:13:46 +02:00
Julien Duponchelle
40cc5d76b3
Fix racecondition when listing interface
...
Fix #1060
2017-06-07 15:57:05 +02:00
Julien Duponchelle
ecfa89cba8
Speed up interfaces listening on Windows
...
Fix #788
2016-11-16 12:28:02 +01:00
Julien Duponchelle
6e5e9e3df9
Fix filtering special interfaces on Windows
2016-11-16 12:21:43 +01:00
Julien Duponchelle
56c580dc44
On windows filter VMware and VirtualBox adapters by default
...
Ref #788
2016-11-16 12:16:46 +01:00
Julien Duponchelle
cf723962af
Support bridge in cloud
...
Nat take advantage of that and the code is more simple.
Fix #761
2016-11-04 17:32:16 +01:00
Julien Duponchelle
c38dd004b8
Extract netmask of interfaces on windows
2016-09-28 10:48:28 +02:00
Julien Duponchelle
3ea5df7462
Make better error when we have no netmask
...
Fix #1541
2016-09-27 11:47:18 +02:00
Julien Duponchelle
29563ed7bc
Fill cloud interface server side
...
Fix https://github.com/GNS3/gns3-gui/issues/1535
2016-09-22 17:46:32 +02:00
Julien Duponchelle
84a2f8b4a3
Return flag for special interface that you can use in the cloud
...
Fix https://github.com/GNS3/gns3-gui/issues/1509
2016-09-14 17:15:06 +02:00
Julien Duponchelle
c01bb2436e
Return netmask with list of interfaces
2016-08-25 17:22:22 +02:00
Julien Duponchelle
c0abe0edfd
Merge branch 'master' into 2.0
2016-07-13 17:48:18 +02:00
Julien Duponchelle
febf0f7839
Fix crash when winpcap is not installed
...
Ref https://github.com/GNS3/gns3-gui/issues/1380
2016-07-12 13:43:08 +02:00
grossmj
50aa198ba7
Mark interface type upstream.
2016-07-10 14:54:31 -06:00
grossmj
acdc1e5ebb
Fixes check for NPF service and add check for NPCAP service on Windows.
2016-05-20 20:19:28 -06:00
grossmj
fa58b1f81c
Check for NPF service on Windows.
2016-03-25 19:53:36 -06:00
grossmj
a018c5b0f5
Get MAC addresses for host interfaces to use for filtering frames from vmnet interfaces.
2016-03-14 18:27:51 -06:00
Julien Duponchelle
e626c0b55c
Raise an error if psutil version is invalid
...
Fix #361
2015-12-01 09:42:36 +01:00
Julien Duponchelle
da240f21ba
Apply pep8 fix
2015-11-09 12:28:00 +01:00
grossmj
c3e99bfc1d
Drop netifaces (replaced by psutil). Fixes #344 .
2015-11-08 13:34:27 -07:00
Jeremy
abd9c1dc48
Use the registry to find vmrun if the default VMware install path does not exist.
2015-07-21 15:59:29 -06:00
Jeremy
870029123c
Netifaces is not used on Windows. Fixes #257 .
2015-07-08 14:51:21 -06:00
grossmj
8bcf749cd5
Adds an IP address for each interface returned by the interfaces API method.
2015-06-12 17:54:02 -06:00
Julien Duponchelle
7c7f8fe3ed
Fix ethernet interfaces tests if eth0 doesn't exists
...
Also on Windows and MacOS it return error if we try
to use a non existing interfaces.
Fix #230
2015-06-09 16:35:21 +02:00
Julien Duponchelle
36d5049c61
More debug for the interfaces up crash debug
2015-06-09 10:10:06 +02:00
grossmj
042472f02c
Check interface is up before connecting a NIO (Linux only). Fixes #277 .
2015-06-07 13:51:33 -06:00
Jeremy
cb7b9e8190
Adapters for VMware VMs.
2015-05-15 19:09:48 -06:00
grossmj
3680c40e23
Catch COM errors when connecting to WMI.
2015-04-23 00:03:44 -06:00
grossmj
30ed89847b
Adds netifaces module in the setup dependencies.
2015-03-14 15:40:00 -06:00
Jeremy
79a57ca420
New Dynamips integration part 3
2015-02-11 19:21:34 -07:00
Julien Duponchelle
70faf76c10
PEP8, documentation update, test fix
2015-01-26 09:36:26 +01:00
Jeremy
50fea669b5
Network handler for UDP port allocation and server network interfaces.
2015-01-24 15:32:58 -07:00