From 1bf1652c08dde3368e098c2f28260cb24f4aa0f8 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Fri, 3 Jul 2015 15:16:11 +0900 Subject: server/table: support iBGP behavior also added scenario_test Signed-off-by: ISHIDA Wataru --- test/scenario_test/lib/gobgp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/scenario_test/lib/gobgp.py') diff --git a/test/scenario_test/lib/gobgp.py b/test/scenario_test/lib/gobgp.py index 11eeeb96..c56337cd 100644 --- a/test/scenario_test/lib/gobgp.py +++ b/test/scenario_test/lib/gobgp.py @@ -53,7 +53,7 @@ class GoBGPContainer(BGPContainer): def _get_as_path(self, path): asps = (p['as_paths'] for p in path['attrs'] if - p['type'] == BGP_ATTR_TYPE_AS_PATH) + p['type'] == BGP_ATTR_TYPE_AS_PATH and 'as_paths' in p) asps = chain.from_iterable(asps) asns = (asp['asns'] for asp in asps) return list(chain.from_iterable(asns)) -- cgit v1.2.3