diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-07-03 15:16:11 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-07-13 08:56:08 +0900 |
commit | 1bf1652c08dde3368e098c2f28260cb24f4aa0f8 (patch) | |
tree | ae57764ac55db79bdd7cee417ae88ad156129eb9 /test/scenario_test/lib/gobgp.py | |
parent | b759f2b1ca7176ea134b3a86d8bfea44509712dd (diff) |
server/table: support iBGP behavior
also added scenario_test
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/lib/gobgp.py')
-rw-r--r-- | test/scenario_test/lib/gobgp.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |