Skip to content

Fix: send CIDR in static-route_network for nexthop routes - #1

Open
sebastianrak wants to merge 1 commit into
mattackerman808:mainfrom
sebastianrak:fix/nexthop-cidr
Open

Fix: send CIDR in static-route_network for nexthop routes #1
sebastianrak wants to merge 1 commit into
mattackerman808:mainfrom
sebastianrak:fix/nexthop-cidr

Conversation

@sebastianrak

Copy link
Copy Markdown

UniFi API expects static-route_network in CIDR notation (e.g. 192.168.9.0/24).

The current implementation splits the network and sends only the base address
for nexthop routes, which results in:

api.err.InvalidPayload / api.err.InvalidValue

This patch sends the full CIDR string instead.

Tested against UniFi OS – route creation works as expected.

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