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

Support dynamic NAT pools for router in Elektra #1337

Open
sebageek opened this issue Apr 22, 2024 · 0 comments
Open

Support dynamic NAT pools for router in Elektra #1337

sebageek opened this issue Apr 22, 2024 · 0 comments

Comments

@sebageek
Copy link
Contributor

Our asr1k driver now supports adding multiple IPs to the external gateway of a router. This will result in a NAT pool being created in the router config, resulting in a larger NAT pool, which is a feature a couple of customers have requested. We would like this feature to be exposed in Elektra.

From an API perspective this works by providing multiple external_fixed_ips as part of the external_gateway_info. This can be done on router create as well as on router update. From an API perspective "having a Pool" looks no different than "three or more IPs on the external gateway".

Caveats:

  • two ips are not possible. either provide one ip or three (two for the pool, one for the router)
  • the last IP is always used for the router itself
  • all pool ips need to be consecutive (but if only a subnet id is provided the driver autoallocates the pool)

The driver will complain about anything that is not working with a HTTP Bad Request. The description + implementation can be found here in the driver including all new exceptions the driver can throw. Details on the feature can be found in our internal ADR repo or soon in our user docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant