Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
1601d61
)
Fix map-e variable set generator
55/4155/1
author
Matej Klotton
<mklotton@cisco.com>
Wed, 7 Dec 2016 16:44:02 +0000
(17:44 +0100)
committer
Matej Klotton
<mklotton@cisco.com>
Wed, 7 Dec 2016 16:44:02 +0000
(17:44 +0100)
- a first octet can not be 127.
Change-Id: I003a00b4aed61f46d4ae6a4bace561bba9ee5a28
Signed-off-by: Matej Klotton <mklotton@cisco.com>
resources/test_data/softwire/map_e_domains.py
patch
|
blob
|
history
diff --git
a/resources/test_data/softwire/map_e_domains.py
b/resources/test_data/softwire/map_e_domains.py
index
3637b4e
..
44cb661
100644
(file)
--- a/
resources/test_data/softwire/map_e_domains.py
+++ b/
resources/test_data/softwire/map_e_domains.py
@@
-33,7
+33,10
@@
def get_variables(count):
domain_sets = []
ip_sets = []
- for n1, n2 in sample(list(product(xrange(2, 224), xrange(0, 256))), count):
+ ip_product = [x for x in list(product(xrange(2, 224), xrange(0, 256)))
+ if x[0] != 127]
+
+ for n1, n2 in sample(ip_product, count):
v4_pfx = '{}.{}.0.0/16'.format(n1, n2)
v6_pfx = '2001:{:x}{:x}::/48'.format(n1, n2)
ipv6_br = '2001:ffff::1'