From 5256fbe1ca083e02c37c41b4f79f9451f7ddd82b Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sun, 5 Apr 2015 10:35:46 +0000 Subject: scenario_test: fix get_adj_rib Signed-off-by: ISHIDA Wataru --- test/scenario_test/scenario_test_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/scenario_test/scenario_test_util.py') diff --git a/test/scenario_test/scenario_test_util.py b/test/scenario_test/scenario_test_util.py index 978f2416..a889c2db 100644 --- a/test/scenario_test/scenario_test_util.py +++ b/test/scenario_test/scenario_test_util.py @@ -77,7 +77,7 @@ def get_adj_rib(base_url, neighbor_address, target_prefix, retry, interval, type r = requests.get(url) in_rib = json.loads(r.text) print in_rib - paths = [p for p in in_rib['RF_IPv4_UC'] if p['Network'] == target_prefix] + paths = [p for p in in_rib if p['Network'] == target_prefix] if len(paths) > 0: assert len(paths) == 1 -- cgit v1.2.3