mirror of
https://github.com/hansjone/netx.git
synced 2026-10-10 18:10:45 +08:00
Unify UME World as hex nav with conditional flat world map.
Seed a unique L2 World canvas under the UME World container, show the flat map only when nested regions have NEs, pack blocks without overlap, allow drag overrides on the world map while forbidding direct NE adds, and hide the world-map truncation banner. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
5d705fa7bb
commit
1ef43fdcd4
30 changed files with 4389 additions and 371 deletions
|
|
@ -32,6 +32,9 @@ class TopoFabricNode(Base):
|
|||
# rule | manual | ""
|
||||
role_source: Mapped[str] = mapped_column(String(16), default="")
|
||||
region_source: Mapped[str] = mapped_column(String(16), default="")
|
||||
# Composed flat-world coordinates (packed per-SBN local layouts). Not raw UME xPos/yPos.
|
||||
world_x: Mapped[float | None] = mapped_column(Float, nullable=True, index=True)
|
||||
world_y: Mapped[float | None] = mapped_column(Float, nullable=True, index=True)
|
||||
attrs: Mapped[dict] = mapped_column(_JsonType, default=dict)
|
||||
last_seen_at: Mapped[datetime | None] = mapped_column(DateTime, nullable=True, index=True)
|
||||
created_at: Mapped[datetime] = mapped_column(DateTime, default=utcnow_naive)
|
||||
|
|
@ -104,6 +107,8 @@ class TopoFolder(Base):
|
|||
name: Mapped[str] = mapped_column(String(256), default="", index=True)
|
||||
sort_order: Mapped[int] = mapped_column(Integer, default=0)
|
||||
is_system: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||
# UME SBN uuid when folder is synced from TopoNodes; empty for manual regions.
|
||||
external_ref: Mapped[str] = mapped_column(String(128), default="", index=True)
|
||||
created_at: Mapped[datetime] = mapped_column(DateTime, default=utcnow_naive)
|
||||
updated_at: Mapped[datetime] = mapped_column(DateTime, default=utcnow_naive, index=True)
|
||||
|
||||
|
|
|
|||
|
|
@ -210,6 +210,8 @@ class UmeTopoLink(Base):
|
|||
z_ume_ne_id: Mapped[str] = mapped_column(String(128), default="", index=True)
|
||||
a_ptp: Mapped[str] = mapped_column(String(256), default="")
|
||||
z_ptp: Mapped[str] = mapped_column(String(256), default="")
|
||||
a_ifname: Mapped[str] = mapped_column(String(128), default="", comment="Normalized CLI-like ifname")
|
||||
z_ifname: Mapped[str] = mapped_column(String(128), default="", comment="Normalized CLI-like ifname")
|
||||
first_seen_at: Mapped[datetime] = mapped_column(DateTime, default=utcnow_naive)
|
||||
last_seen_at: Mapped[datetime] = mapped_column(DateTime, default=utcnow_naive, index=True)
|
||||
raw_json: Mapped[str] = mapped_column(Text, default="{}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue