feat: auto-detect OS from description; expand OS_LIST to 51 distros

- Remove os field from Device API and form — OS is now detected
  automatically from name/description via detectOs() in brandIcons.js
- Expand OS_LIST from 20 to 51 entries covering all major distros
  (Debian/Ubuntu flavours, Red Hat, SUSE, Arch, BSD, security distros,
  Windows/macOS/iOS/Android, generic Linux/BSD catch-alls)
- Display detected OS icon in IpAddressing.vue description column
- Fix virt_type validator to normalise empty string to null

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-22 08:52:53 +02:00
parent 954b5cefa6
commit fd289cc00f
8 changed files with 139 additions and 175 deletions
+1
View File
@@ -36,6 +36,7 @@ class Device(Base):
is_livebox = Column(Boolean, default=False)
virt_type = Column(String, nullable=True)
url = Column(String, nullable=True)
os = Column(String, nullable=True)
interfaces = relationship(
"DeviceInterface", back_populates="device", cascade="all, delete-orphan"