Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow DefaultGateway model to look for both RoutingGateways and RoutingGatewayGroups #558

Closed
jaredhendrickson13 opened this issue Sep 6, 2024 Discussed in #557 · 0 comments · Fixed by #559
Closed
Labels
enhancement Issues or PRs that enhance existing features

Comments

@jaredhendrickson13
Copy link
Owner

jaredhendrickson13 commented Sep 6, 2024

The DefaultGateway model is currently only looking for RoutingGateways, when it should ideally also be looking for RoutingGatewayGroups.

Discussed in #557

Originally posted by leandrogbreve September 6, 2024
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:

{ "defaultgw4": "WAN2GW", "apply": true }

However, if I send the name of an existing and valid gateway group (image below):

image

It returns:

{ "code": 404, "status": "not found", "response_id": "FOREIGN_MODEL_FIELD_VALUE_NOT_FOUND", "message": "Field 'defaultgw4' could not locate 'Routing Gateway' object with 'name' set to 'FAILOVER_LINK1_LINK2'", "data": [] }

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.

@jaredhendrickson13 jaredhendrickson13 added the enhancement Issues or PRs that enhance existing features label Sep 6, 2024
@jaredhendrickson13 jaredhendrickson13 linked a pull request Sep 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues or PRs that enhance existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant