From b5851c14f243b6af13ffafbfb78addf8eb0b17bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?p=C3=BDrus?= Date: Fri, 13 Jun 2025 11:05:50 +0200 Subject: [PATCH] neutron: add more quotas members --- .../v2/extensions/quotas/requests.go | 12 ++++++++++ .../v2/extensions/quotas/results.go | 24 +++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/openstack/networking/v2/extensions/quotas/requests.go b/openstack/networking/v2/extensions/quotas/requests.go index 859c552cef..3605c658f8 100644 --- a/openstack/networking/v2/extensions/quotas/requests.go +++ b/openstack/networking/v2/extensions/quotas/requests.go @@ -28,6 +28,18 @@ type UpdateOptsBuilder interface { // UpdateOpts represents options used to update the Networking Quotas. type UpdateOpts struct { + // BGPVPN represents a number of BGP VPNs. A "-1" value means no limit. + BGPVPN *int `json:"bgpvpn,omitempty"` + + // FirewallGroup represents a number of firewall groups. A "-1" value means no limit. + FirewallGroup *int `json:"firewall_group,omitempty"` + + // FirewallPolicy represents a number of firewall policies. A "-1" value means no limit. + FirewallPolicy *int `json:"firewall_policy,omitempty"` + + // FirewallRule represents a number of firewall rules. A "-1" value means no limit. + FirewallRule *int `json:"firewall_rule,omitempty"` + // FloatingIP represents a number of floating IPs. A "-1" value means no limit. FloatingIP *int `json:"floatingip,omitempty"` diff --git a/openstack/networking/v2/extensions/quotas/results.go b/openstack/networking/v2/extensions/quotas/results.go index 8b1ae8a95d..c949ca9fe3 100644 --- a/openstack/networking/v2/extensions/quotas/results.go +++ b/openstack/networking/v2/extensions/quotas/results.go @@ -54,6 +54,18 @@ type UpdateResult struct { // Quota contains Networking quotas for a project. type Quota struct { + // BGPVPN represents a number of BGP VPNs. A "-1" value means no limit. + BGPVPN int `json:"bgpvpn"` + + // FirewallGroup represents a number of firewall groups. A "-1" value means no limit. + FirewallGroup int `json:"firewall_group"` + + // FirewallPolicy represents a number of firewall policies. A "-1" value means no limit. + FirewallPolicy int `json:"firewall_policy"` + + // FirewallRule represents a number of firewall rules. A "-1" value means no limit. + FirewallRule int `json:"firewall_rule"` + // FloatingIP represents a number of floating IPs. A "-1" value means no limit. FloatingIP int `json:"floatingip"` @@ -88,6 +100,18 @@ type Quota struct { // QuotaDetailSet represents details of both operational limits of Networking resources for a project // and the current usage of those resources. type QuotaDetailSet struct { + // BGPVPN represents a number of BGP VPNs. A "-1" value means no limit. + BGPVPN QuotaDetail `json:"bgpvpn"` + + // FirewallGroup represents a number of firewall groups. A "-1" value means no limit. + FirewallGroup QuotaDetail `json:"firewall_group"` + + // FirewallPolicy represents a number of firewall policies. A "-1" value means no limit. + FirewallPolicy QuotaDetail `json:"firewall_policy"` + + // FirewallRule represents a number of firewall rules. A "-1" value means no limit. + FirewallRule QuotaDetail `json:"firewall_rule"` + // FloatingIP represents a number of floating IPs. A "-1" value means no limit. FloatingIP QuotaDetail `json:"floatingip"`