From 3ea531a687827454360659f91aaa026001e75d4e Mon Sep 17 00:00:00 2001 From: Matej Klotton Date: Tue, 1 Mar 2016 16:34:52 +0100 Subject: Add more IP networks to IPV4_NETWORKS and IPV6_NETWORKS Change-Id: If340a21aac02f94aaf8a282f7b689c0f5d9aa438 Signed-off-by: Matej Klotton --- resources/libraries/python/IPv4NodeAddress.py | 4 +--- resources/libraries/python/IPv6NodesAddr.py | 2 +- 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): -- cgit 1.2.3-korg