diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-09-17 20:01:22 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-07-05 04:57:27 +0900 |
commit | f48c4deaa19ca8b36d87a0d71776bc29b7e17ebe (patch) | |
tree | 169474793f5afba6db03d9743a3ab747b6a0d7a7 /test/lib/quagga.py | |
parent | 87f0b0bdc52945ae98ef6d44b7f118216bde95ca (diff) |
test: add addpath_test.py
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/lib/quagga.py')
-rw-r--r-- | test/lib/quagga.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lib/quagga.py b/test/lib/quagga.py index e7b9f9bf..d37c2dbc 100644 --- a/test/lib/quagga.py +++ b/test/lib/quagga.py @@ -17,6 +17,7 @@ from __future__ import absolute_import from fabric import colors from fabric.utils import indent +from itertools import chain import netaddr from lib.base import ( @@ -191,7 +192,7 @@ class QuaggaBGPContainer(BGPContainer): c << 'neighbor {0} activate'.format(n_addr) c << 'exit-address-family' - for route in self.routes.itervalues(): + for route in chain.from_iterable(self.routes.itervalues()): if route['rf'] == 'ipv4': c << 'network {0}'.format(route['prefix']) elif route['rf'] == 'ipv6': |