diff options
author | tomsou <soth@intracom-telecom.com> | 2018-01-18 12:42:57 +0200 |
---|---|---|
committer | tomsou <soth@intracom-telecom.com> | 2018-01-18 14:41:12 +0200 |
commit | fbfb2513a8bc4f82ba2f5e69e64da659716cfb2d (patch) | |
tree | 6a6060b3c2b505ff78be1c8d84b893a7cd8e4a7e /sdnvpn/lib | |
parent | d61955e655416c97be7a5030ae5ae23542a28a9e (diff) |
Set unlimited router quotas
Update router quotas to fix bgpvpn scenario in CIq
JIRA:SDNVPN-208
Change-Id: I25353229d119459c8e961b0f3f6264f715533d13
Signed-off-by: tomsou <soth@intracom-telecom.com>
Diffstat (limited to 'sdnvpn/lib')
-rw-r--r-- | sdnvpn/lib/config.py | 1 | ||||
-rw-r--r-- | sdnvpn/lib/utils.py | 10 |
2 files changed, 7 insertions, 4 deletions
diff --git a/sdnvpn/lib/config.py b/sdnvpn/lib/config.py index 9659fc3..8d87f33 100644 --- a/sdnvpn/lib/config.py +++ b/sdnvpn/lib/config.py @@ -57,6 +57,7 @@ class CommonConfig(object): self.neutron_nw_quota = -1 self.neutron_subnet_quota = -1 self.neutron_port_quota = -1 + self.neutron_router_quota = -1 self.nova_instances_quota_class = -1 commonCfgInstance = None diff --git a/sdnvpn/lib/utils.py b/sdnvpn/lib/utils.py index 0ab8b84..44641ee 100644 --- a/sdnvpn/lib/utils.py +++ b/sdnvpn/lib/utils.py @@ -777,11 +777,12 @@ def is_fail_mode_secure(): def update_nw_subnet_port_quota(neutron_client, tenant_id, nw_quota, - subnet_quota, port_quota): + subnet_quota, port_quota, router_quota): json_body = {"quota": { "network": nw_quota, "subnet": subnet_quota, - "port": port_quota + "port": port_quota, + "router": router_quota }} try: @@ -790,8 +791,9 @@ def update_nw_subnet_port_quota(neutron_client, tenant_id, nw_quota, return True except Exception as e: logger.error("Error [update_nw_subnet_port_quota(neutron_client," - " '%s', '%s', '%s', '%s')]: %s" % - (tenant_id, nw_quota, subnet_quota, port_quota, e)) + " '%s', '%s', '%s', '%s, %s')]: %s" % + (tenant_id, nw_quota, subnet_quota, + port_quota, router_quota, e)) return False |