aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries
diff options
context:
space:
mode:
authorMatej Klotton <mklotton@cisco.com>2016-03-01 16:34:52 +0100
committerStefan Kobza <skobza@cisco.com>2016-03-04 16:13:00 +0000
commit3ea531a687827454360659f91aaa026001e75d4e (patch)
treebd9296c545264b21cdb7098b8f30f6425c04f65e /resources/libraries
parent8adf454177cc4df3335a26cc7567add8a40870c4 (diff)
Add more IP networks to IPV4_NETWORKS and IPV6_NETWORKS
Change-Id: If340a21aac02f94aaf8a282f7b689c0f5d9aa438 Signed-off-by: Matej Klotton <mklotton@cisco.com>
Diffstat (limited to 'resources/libraries')
-rw-r--r--resources/libraries/python/IPv4NodeAddress.py4
-rw-r--r--resources/libraries/python/IPv6NodesAddr.py2
2 files changed, 2 insertions, 4 deletions
diff --git a/resources/libraries/python/IPv4NodeAddress.py b/resources/libraries/python/IPv4NodeAddress.py
index 49ce41b25c..67599359c8 100644
--- a/resources/libraries/python/IPv4NodeAddress.py
+++ b/resources/libraries/python/IPv4NodeAddress.py
@@ -21,9 +21,7 @@ from ipaddress import IPv4Network
from resources.libraries.python.topology import Topology
# Default list of IPv4 subnets
-IPV4_NETWORKS = ['20.20.20.0/24',
- '10.10.10.0/24',
- '1.1.1.0/30']
+IPV4_NETWORKS = ['192.168.{}.0/24'.format(i) for i in range(1, 100)]
class IPv4NetworkGenerator(object):
diff --git a/resources/libraries/python/IPv6NodesAddr.py b/resources/libraries/python/IPv6NodesAddr.py
index 33192b878f..6bd28ca05c 100644
--- a/resources/libraries/python/IPv6NodesAddr.py
+++ b/resources/libraries/python/IPv6NodesAddr.py
@@ -21,7 +21,7 @@ from IPv6Setup import IPv6Networks
from topology import Topology
# Default list of available IPv6 networks
-IPV6_NETWORKS = ['db01::/64', 'db02::/64', 'db03::/64']
+IPV6_NETWORKS = ['3ffe:{0:04x}::/64'.format(i) for i in range(1, 100)]
def get_variables(nodes, networks=IPV6_NETWORKS):