Browse code

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

Joe Gordon authored on 2013/08/31 02:48:08
Showing 1 changed files
... ...
@@ -507,6 +507,15 @@ function _configure_neutron_common() {
507 507
         done
508 508
     fi
509 509
 
510
+    if [ "$VIRT_DRIVER" = 'fake' ]; then
511
+        # Disable arbitrary limits
512
+        iniset $NEUTRON_CONF quotas quota_network -1
513
+        iniset $NEUTRON_CONF quotas quota_subnet -1
514
+        iniset $NEUTRON_CONF quotas quota_port -1
515
+        iniset $NEUTRON_CONF quotas quota_security_group -1
516
+        iniset $NEUTRON_CONF quotas quota_security_group_rule -1
517
+    fi
518
+
510 519
     _neutron_setup_rootwrap
511 520
 }
512 521