diff options
author | Maxim Devaev <[email protected]> | 2025-01-11 22:20:56 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2025-01-11 22:20:56 +0200 |
commit | 965e649f8cd024dd054ed33dd2ba0f98b508c8ae (patch) | |
tree | 7da9bf6e7f84efbc15e0bc7d4252fb4d4138deb0 /kvmd | |
parent | b49107ff6cf8a5ea489600f22a1cf842873ebfaf (diff) |
switch update notification
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/apps/kvmd/switch/state.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmd/apps/kvmd/switch/state.py b/kvmd/apps/kvmd/switch/state.py index 626cdfe1..e49d0062 100644 --- a/kvmd/apps/kvmd/switch/state.py +++ b/kvmd/apps/kvmd/switch/state.py @@ -49,6 +49,8 @@ class _UnitInfo: # ===== class StateCache: # pylint: disable=too-many-instance-attributes + __FW_VERSION = 5 + __FULL = 0xFFFF __SUMMARY = 0x01 __EDIDS = 0x02 @@ -139,6 +141,7 @@ class StateCache: # pylint: disable=too-many-instance-attributes state: dict = {} if x_model: state["model"] = { + "firmware": {"version": self.__FW_VERSION}, "units": [], "ports": [], "limits": { |