Not able to set gateway group as default? #557
-
Hi everyone, It's my first time posting, and I wasn't able to find any related topics about this. So I apologize in advance if it's duplicated. I can set a gateway as default by making a PATCH request to /routing/gateway/default with a body like:
However, if I send the name of an existing and valid gateway group (image below): It returns:
I haven't seen in the docs anything regarding not being able to set a gateway group as default, so that is my question: isn't it possible to set a gateway group as default? Thanks! Leandro. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hmm yeah this is an oversight on my end, I missed this one when support for gateway groups was added. The DefaultGateway model is currently only looking for RoutingGateways when it should be looking for both RoutingGateways and RoutingGatewayGroups: I'll get this added in a patch, you can follow #558 for progress. Thanks for reporting! |
Beta Was this translation helpful? Give feedback.
Hmm yeah this is an oversight on my end, I missed this one when support for gateway groups was added. The DefaultGateway model is currently only looking for RoutingGateways when it should be looking for both RoutingGateways and RoutingGatewayGroups:
pfsense-api/pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/DefaultGateway.inc
Lines 23 to 33 in b62e4ba