Skip to content

feat(dhcp-relay): export the CMDB DHCP relays to openconfig-relay-agent - #78

Merged
tkinet merged 1 commit into
criteo:mainfrom
tkinet:dhcp_relay
Oct 16, 2026
Merged

tkinet merged 1 commit into
criteo:mainfrom
tkinet:dhcp_relay

Conversation

@tkinet

@tkinet tkinet commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Fetch the DHCP relay interfaces from the CMDB and expose them in the openconfig-relay-agent dhcp container, one entry per logical interface (routed port or SVI), with the relay servers as helper-address.

The CMDB endpoint reaches the device through the logical interface, so the datacenter filter needs a different prefix than the other endpoints. Netbox silently ignores an unknown filter and returns everything, hence datacenterFilterWithPrefix, which keeps deviceDatacenterFilter unchanged for the existing callers.

Fetch the DHCP relay interfaces from the CMDB and expose them in the
openconfig-relay-agent dhcp container, one entry per logical interface
(routed port or SVI), with the relay servers as helper-address.

The CMDB endpoint reaches the device through the logical interface, so
the datacenter filter needs a different prefix than the other endpoints.
Netbox silently ignores an unknown filter and returns everything, hence
datacenterFilterWithPrefix, which keeps deviceDatacenterFilter unchanged
for the existing callers.
@tkinet
tkinet merged commit 237dd43 into criteo:main Oct 16, 2026
2 checks passed
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.

2 participants