Commit Graph

13 Commits

Author SHA1 Message Date
Damien
9e1fe9be7f chore(fix schema): remove unused border leaf 2026-02-20 15:02:49 +01:00
Damien
ccd882bcfd fix(schema): change InfraIPAddress.address from IPNetwork to IPHost — refs #52
IPNetwork with strict=True rejects host addresses like 10.0.1.1/31
(host bits set). Interface IP assignments are host addresses with a
prefix length, which is exactly what IPHost accepts.
2026-02-15 20:23:07 +01:00
Damien
f623d12b8c fix(schema): remove redundant Device.router_id, add BGP distance attributes — refs #48 2026-02-13 11:24:49 +01:00
Damien
ed820f3380 fix(schema): add virtual_router_address and autostate on InterfaceVlan — refs #46 2026-02-13 11:23:29 +01:00
Damien
719ecfafaa fix(schema): remove duplicate InterfaceVxlan, keep VTEP only — refs #44 2026-02-13 11:22:43 +01:00
69f003b798 feat(schema): add include_in_menu: false to all base nodes #41
Menu is now controlled by custom menus/fabric-menu.yml
2026-02-09 12:03:09 +00:00
97080473f7 fix: migrate display_labels to display_label Jinja2 format in base schema
Replaces deprecated display_labels list format and bare display_label
strings with the new Jinja2 template format as required by Infrahub.

Refs #41
2026-02-07 09:16:40 +00:00
a917715a47 refactor(schema): replace deprecated display_labels with display_label across all nodes 2026-02-07 09:03:11 +00:00
ef6877551f fix(schema): IPAddress.interface - replace Parent with Attribute kind
Parent relationships cannot be optional in Infrahub. Since an IP address
can exist without being assigned to an interface (reserved, planned),
we use kind: Attribute instead of kind: Parent.

Also change InfraInterface.ip_addresses from Component to Generic
since Component requires a matching Parent on the other side.

Both sides now use explicit identifier: interface__ip_addresses
for proper bidirectional linking.
2026-02-06 15:07:01 +00:00
4aadf763a3 fix(schema): add optional: false on device relationship for uniqueness_constraints 2026-02-06 13:11:52 +00:00
4e9c2d3009 fix(schema): replace deprecated default_filter with human_friendly_id in base.yml 2026-02-06 13:06:58 +00:00
eb809812af fix(schema): add direction outbound for self-referencing relationship
InterfaceEthernet.connected_interface is a self-reference that requires
direction: outbound to avoid bidirectional conflicts per Infrahub docs.

Ref: #41
2026-02-06 09:12:15 +00:00
077917f011 feat(schema): add base infrastructure schema
Add core infrastructure models for Device, Interface, IPAddress,
and Platform based on the arista-evpn-vxlan-clab topology.

Ref: #41
2026-02-05 15:52:36 +00:00