Skip to content

networking/v2/layer3/routers: Add external gateways management#3603

Merged
kayrus merged 3 commits intogophercloud:mainfrom
aldokimi:dev/external_gateway_support
Jan 22, 2026
Merged

networking/v2/layer3/routers: Add external gateways management#3603
kayrus merged 3 commits intogophercloud:mainfrom
aldokimi:dev/external_gateway_support

Conversation

@aldokimi
Copy link
Copy Markdown
Contributor

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_info to manage multiple external gateways on a single router.

New Functions

  • AddExternalGateways - Add external gateways to a router
  • UpdateExternalGateways - Update external gateways of a router
  • RemoveExternalGateways - Remove external gateways from a router

API Endpoints Implemented

Operation Method Endpoint
Add External Gateways PUT /v2.0/routers/{router_id}/add_external_gateways
Update External Gateways PUT /v2.0/routers/{router_id}/update_external_gateways
Remove External Gateways PUT /v2.0/routers/{router_id}/remove_external_gateways

References

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
@github-actions github-actions bot added edit:networking This PR updates networking code semver:minor Backwards-compatible change backport-v2 This PR will be backported to v2 labels Jan 12, 2026
@coveralls
Copy link
Copy Markdown

coveralls commented Jan 12, 2026

Coverage Status

coverage: 63.797% (+0.02%) from 63.781%
when pulling cab952c on aldokimi:dev/external_gateway_support
into 79bfae4 on gophercloud:main.

@kayrus
Copy link
Copy Markdown
Contributor

kayrus commented Jan 15, 2026

@aldokimi thank you for the PR. Could you please fix lint issues and acceptance tests?

@aldokimi
Copy link
Copy Markdown
Contributor Author

Hello @kayrus , I updated the code, can you run testing again? thanks,

Copy link
Copy Markdown
Contributor

@kayrus kayrus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@kayrus kayrus added this pull request to the merge queue Jan 22, 2026
Merged via the queue into gophercloud:main with commit a210557 Jan 22, 2026
61 of 62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v2 This PR will be backported to v2 edit:networking This PR updates networking code semver:minor Backwards-compatible change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants