networking/v2/layer3/routers: Add external gateways management#3603
Merged
kayrus merged 3 commits intogophercloud:mainfrom Jan 22, 2026
Merged
networking/v2/layer3/routers: Add external gateways management#3603kayrus merged 3 commits intogophercloud:mainfrom
kayrus merged 3 commits intogophercloud:mainfrom
Conversation
Add support for managing external gateways on routers: * AddExternalGateways * UpdateExternalGateways * RemoveExternalGateways These operations extend router.external_gateway_info to support multiple external gateways on a single router. Ref: https://docs.openstack.org/api-ref/network/v2/index.html#add-external-gateways-to-router
Contributor
|
@aldokimi thank you for the PR. Could you please fix lint issues and acceptance tests? |
Contributor
Author
|
Hello @kayrus , I updated the code, can you run testing again? thanks, |
kayrus
reviewed
Jan 22, 2026
internal/acceptance/openstack/networking/v2/extensions/layer3/routers_test.go
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For #3567
Description
This PR adds support for managing external gateways on routers in the Neutron networking service. These operations extend the use of
router.external_gateway_infoto manage multiple external gateways on a single router.New Functions
AddExternalGateways- Add external gateways to a routerUpdateExternalGateways- Update external gateways of a routerRemoveExternalGateways- Remove external gateways from a routerAPI Endpoints Implemented
/v2.0/routers/{router_id}/add_external_gateways/v2.0/routers/{router_id}/update_external_gateways/v2.0/routers/{router_id}/remove_external_gatewaysReferences