Skip to content

extosdep: notify external OS handler of network config updates#2587

Open
aadnehovda wants to merge 1 commit into
zerotier:devfrom
aadnehovda:extosdep-config-update
Open

extosdep: notify external OS handler of network config updates#2587
aadnehovda wants to merge 1 commit into
zerotier:devfrom
aadnehovda:extosdep-config-update

Conversation

@aadnehovda
Copy link
Copy Markdown

@aadnehovda aadnehovda commented May 20, 2026

This adds a small extosdep notification for network configuration changes. External OS handlers can use it as a low-cost nudge that something changed for a network and then fetch authoritative state through the existing local API.

The message carries the network ID and configuration revision. It is emitted when the service receives network configuration updates, down events, or destroy events.

This also fixes extosdep TAP IP bookkeeping in removeIp(). Without removing the deleted address from the internal allIps list, a later addIp() for the same address is incorrectly suppressed. That matters for wrappers that let ZeroTier One remain responsible for policy decisions and simply execute the resulting ADDIP/DELIP messages.

Validation

  • Built ZeroTier One with ZT_EXTOSDEP=1.
  • Ran it under a VyOS wrapper using zerotier-one -x fd1,fd2.
  • Confirmed the wrapper received config update notifications for joined and not-found networks.
  • Confirmed DELIP followed by ADDIP works when controller-managed addressing is disabled and re-enabled.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 20, 2026

CLA assistant check
All committers have signed the CLA.

@aadnehovda aadnehovda force-pushed the extosdep-config-update branch from 4206142 to b8ffff3 Compare May 20, 2026 18:34
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