aboutsummaryrefslogtreecommitdiff
path: root/icebox/icebox.py
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2017-10-29 16:14:15 +0000
committerDavid Shah <davey1576@gmail.com>2017-10-29 16:14:15 +0000
commite9e9d0e9cb858e5643aff9684de7e8cded68405f (patch)
treeb1f4b0fc353037b3e96e996cd8fb9c903a4525b1 /icebox/icebox.py
parentd5b610f0e82f38d4b608f3b0c3c8ac5c093b4724 (diff)
Share glb_netwk data between 5k and 8k parts
Diffstat (limited to 'icebox/icebox.py')
-rw-r--r--icebox/icebox.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/icebox/icebox.py b/icebox/icebox.py
index 43cebea..eaeea97 100644
--- a/icebox/icebox.py
+++ b/icebox/icebox.py
@@ -1108,20 +1108,15 @@ def parse_db(text, device="1k"):
for line in text.split("\n"):
line_384 = line.replace("384_glb_netwk_", "glb_netwk_")
line_1k = line.replace("1k_glb_netwk_", "glb_netwk_")
- line_5k = line.replace("5k_glb_netwk_", "glb_netwk_")
line_8k = line.replace("8k_glb_netwk_", "glb_netwk_")
if line_1k != line:
if device != "1k":
continue
line = line_1k
elif line_8k != line:
- if device != "8k":
+ if device != "8k" and device != "5k": # global network is the same for 8k and 5k
continue
line = line_8k
- elif line_5k != line:
- if device != "5k":
- continue
- line = line_5k
elif line_384 != line:
if device != "384":
continue