Skip to content

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

@jaredhendrickson13

Description

@jaredhendrickson13

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIssues or PRs that enhance existing features

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions