gophercloud icon indicating copy to clipboard operation
gophercloud copied to clipboard

neutron: add more quotas members

Open kayrus opened this issue 6 months ago • 7 comments

An addition to #1742

kayrus avatar Jun 13 '25 09:06 kayrus

Coverage Status

coverage: 63.704%. remained the same when pulling b5851c14f243b6af13ffafbfb78addf8eb0b17bd on kayrus:new-neutron-quota into 992e8b74d2f7b1bb936a07cf2451ce34f946305f on gophercloud:main.

coveralls avatar Jun 13 '25 09:06 coveralls

To be honest I don't know. Existing support for rbac policies extension already resides in the quota package.

kayrus avatar Jun 17 '25 12:06 kayrus

@mandre I think once these new struct members are pointers, it is ok to keep them here. They will be ignored if they're not defined.

kayrus avatar Jun 25 '25 15:06 kayrus

I'm not sure either. Let's ask the other maintainers. @gophercloud/core any opinion on where the quota fields for neutron extensions should live?

Should we add them to openstack/networking/v2/extensions/fwaas_v2 for fwaas quota similar to what we're doing for MTU, or add them directly to openstack/networking/v2/extensions/quotas/ like we've already done for RBAC policy?

mandre avatar Jun 26 '25 13:06 mandre

I'd be personally in favour of the former, if this is possible, seeing as these are quotas for an extension. Any extension can define its own quota, so this could quickly get out of hand otherwise. My 2c

stephenfin avatar Jun 26 '25 17:06 stephenfin

For context, networing-bgpvpn, neutron-fwaas and networking-sfc all register resource quotas. tap-as-a-service does not.

stephenfin avatar Jun 26 '25 17:06 stephenfin

I shared my thoughts on moving this into a new extension in https://github.com/gophercloud/gophercloud/pull/3447#issue-3192330597. Using pointers for these struct members should be safe and should not introduce issues. Creating separate packages for each individual option, however, could add unnecessary complexity and negatively impact the developer experience for SDK users.

kayrus avatar Jul 16 '25 18:07 kayrus