From d9fdc0f446a458061453ea19694a454f3ba7360e Mon Sep 17 00:00:00 2001 From: Andy Fingerhut Date: Sun, 26 Jan 2020 20:17:18 -0800 Subject: [PATCH] Fix #328, enabling switch port numbers in topology.json to have more than 1 digit (#329) --- utils/run_exercise.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/run_exercise.py b/utils/run_exercise.py index f440689..8f9ec9e 100755 --- a/utils/run_exercise.py +++ b/utils/run_exercise.py @@ -113,7 +113,7 @@ class ExerciseTopo(Topo): assert(len(node.split('-')) == 2) sw_name, sw_port = node.split('-') try: - sw_port = int(sw_port[1]) + sw_port = int(sw_port[1:]) except: raise Exception('Invalid switch node in topology file: {}'.format(node)) return sw_name, sw_port