search for: used_ip

Displaying 1 result from an estimated 1 matches for "used_ip".

Did you mean: user_ip
2013 Sep 30
1
[PATCH] xm-test: fix the ip allocation function
...test/lib/XmTestLib/NetConfig.py b/tools/xm-test/lib/XmTestLib/NetConfig.py index 1f834cc..5013bef 100644 --- a/tools/xm-test/lib/XmTestLib/NetConfig.py +++ b/tools/xm-test/lib/XmTestLib/NetConfig.py @@ -159,7 +159,8 @@ class NetConfig: def setUsedIP(self, domname, interface, ip): self.used_ips[''%s:%s'' % (domname, interface)] = ip - def __findFirstOctetIP(self, prefix, min, max): + def __findFirstOctetIP(self, prefix, min, len): + max = min + len for i in range(min, max): ip = ''%s%s'' % (prefix, str(i))...