mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
feat(controller): expose kernel_datapath on the link payload
Runtime fact recomputed from the NIO wiring on every load (not persisted). Without it clients cannot tell a relay link from a kernel link whose compute lacks a filter capability — both show up as kernel-only types missing from available_filters.
This commit is contained in:
2 files changed
+6
No files matched your search
@@ -847,6 +847,11 @@ class Link:
|
||||
"capture_file_path": self.capture_file_path,
|
||||
"capture_compute_id": self.capture_compute_id,
|
||||
"link_type": self._link_type,
|
||||
# runtime fact, not persisted: recomputed from the NIO wiring on
|
||||
# every load (tells clients which datapath impairs this link —
|
||||
# kernel-only filter types absent from available_filters are
|
||||
# then distinguishable from capability gaps)
|
||||
"kernel_datapath": self.kernel_datapath,
|
||||
"filters": self._filters,
|
||||
"markers": self._markers,
|
||||
"suspend": self._suspended,
|
||||
|
||||
Reference in new issue
Block a user