Skip to content

fix(security): update stale Infra kind references to current Dcim/Ipam namespaces#74

Open
pcDamasceno wants to merge 1 commit into
opsmill:mainfrom
pcDamasceno:fix/security-schema-dcim-namespace
Open

fix(security): update stale Infra kind references to current Dcim/Ipam namespaces#74
pcDamasceno wants to merge 1 commit into
opsmill:mainfrom
pcDamasceno:fix/security-schema-dcim-namespace

Conversation

@pcDamasceno

@pcDamasceno pcDamasceno commented May 31, 2026

Copy link
Copy Markdown

The security extension failed to load because it referenced schema kinds from the old Infra namespace, which was renamed to Dcim (devices, interfaces, endpoints) and Ipam (IP addresses, prefixes) in an earlier base release. security.yml was not updated, so the load aborted with:

SecurityFirewall Unable to find the generic InfraGenericDevice

Changes:

  • InfraGenericDevice -> DcimGenericDevice (inherit_from + menu_placement)
  • InfraInterface -> DcimInterface
  • InfraEndpoint -> DcimEndpoint
  • InfraIPAddress -> IpamIPAddress
  • InfraPrefix -> IpamPrefix

Also add DcimPhysicalDevice to SecurityFirewall's inheritance, matching DcimDevice. The deployed schema already expects it; without it the load failed a second time with a node-level inherit_from constraint violation for trying to drop DcimPhysicalDevice from an existing node.

…m namespaces

The security extension failed to load because it referenced schema kinds
from the old `Infra` namespace, which was renamed to `Dcim` (devices,
interfaces, endpoints) and `Ipam` (IP addresses, prefixes) in an earlier
base release. `security.yml` was the only file in the repo never updated,
so the load aborted with:

    SecurityFirewall Unable to find the generic InfraGenericDevice

Changes:
- InfraGenericDevice -> DcimGenericDevice (inherit_from + menu_placement)
- InfraInterface     -> DcimInterface
- InfraEndpoint      -> DcimEndpoint
- InfraIPAddress     -> IpamIPAddress
- InfraPrefix        -> IpamPrefix

Also add DcimPhysicalDevice to SecurityFirewall's inheritance, matching
DcimDevice. A firewall is a physical device (location, device_type,
serial, rack_face) and the deployed schema already expects it; without
it the load failed a second time with a node-level inherit_from
constraint violation for trying to drop DcimPhysicalDevice from an
existing node.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant