]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
rcS/network: Bring up to six interfaces instead of two.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 29 Apr 2014 13:59:56 +0000 (09:59 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 29 Apr 2014 13:59:56 +0000 (09:59 -0400)
With more NICs (for SR-IOV testing) the built-in NIC can
show up _after_ the SR-IOV one when module loading. As such
just bring up more interfaces.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
root_image/etc/init.d/primary_network

index 9af370d26444265b15b5930031713fe45f8755cb..be8e44e9f8cd10108369206d5e5be54193d9f021 100755 (executable)
@@ -2,7 +2,7 @@
 
 . /etc/init.d/functions
 
-MAX_NICS=3
+MAX_NICS=6
 
 function create_bridge() {
 
@@ -96,7 +96,7 @@ function create_static_if() {
                echo "DNS_1=$J.0.0.1" >> $FILE
                echo "NM_CONTROLLED=no" >> $FILE
                COUNT=$(($COUNT+1))
-               # We only want at max two interfaces.
+               # We only want at max six interfaces.
                if [ $COUNT -ge $MAX_NICS ]; then
                        break;
                fi