Page MenuHomeVyOS Platform

http-api: /reconnect endpoint is not reachable through nginx
Open, NormalPublic

Description

The REST endpoint /reconnect (added in T9354 as the replacement for reset connection) is missing from the location regex in data/templates/https/nginx.default.j2. nginx never forwards it to the API socket, so the operation is not available through the HTTP API.

Fix: add reconnect to the location regex and a smoketest (test_api_reconnect) checking the endpoint is reached.

Details

Version
rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)