Disable neutron quotas when using fake virt driver
Nova's fake virt driver, can be used to do scale testing, so when using
it disable neutron's quota limits.
Change-Id: I9ce995079af04202179820777217ef294df71226
diff --git a/lib/neutron b/lib/neutron
index 31876de..bf04840 100644
--- a/lib/neutron
+++ b/lib/neutron
@@ -507,6 +507,15 @@
done
fi
+ if [ "$VIRT_DRIVER" = 'fake' ]; then
+ # Disable arbitrary limits
+ iniset $NEUTRON_CONF quotas quota_network -1
+ iniset $NEUTRON_CONF quotas quota_subnet -1
+ iniset $NEUTRON_CONF quotas quota_port -1
+ iniset $NEUTRON_CONF quotas quota_security_group -1
+ iniset $NEUTRON_CONF quotas quota_security_group_rule -1
+ fi
+
_neutron_setup_rootwrap
}