diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-09-24 13:20:12 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-09-25 18:20:48 +0900 |
commit | b38d3f672303cbceaebc05d9711307ba2c9f06dc (patch) | |
tree | b91a4231b44d990621c54e9d4fbd454b4bce1103 /test/scenario_test/lib | |
parent | 72113e364524297ab1caf62c8c62f0a4ff228849 (diff) |
zebra: enable to redistribute specific route type
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/lib')
-rw-r--r-- | test/scenario_test/lib/gobgp.py | 7 | ||||
-rw-r--r-- | test/scenario_test/lib/quagga.py | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/test/scenario_test/lib/gobgp.py b/test/scenario_test/lib/gobgp.py index 445c4205..f126047d 100644 --- a/test/scenario_test/lib/gobgp.py +++ b/test/scenario_test/lib/gobgp.py @@ -275,7 +275,8 @@ class GoBGPContainer(BGPContainer): config['PolicyDefinitions'] = {'PolicyDefinitionList': policy_list} if self.zebra: - config['Global']['Zebra'] = {'Enabled': True} + config['Global']['Zebra'] = {'Enabled': True, + 'RedistributeRouteTypeList':[{'RouteType': 'connect'}],} with open('{0}/gobgpd.conf'.format(self.config_dir), 'w') as f: print colors.yellow('[{0}\'s new config]'.format(self.name)) @@ -287,6 +288,10 @@ class GoBGPContainer(BGPContainer): c << 'hostname zebra' c << 'password zebra' c << 'log file {0}/zebra.log'.format(self.QUAGGA_VOLUME) + c << 'debug zebra packet' + c << 'debug zebra kernel' + c << 'debug zebra rib' + c << '' with open('{0}/zebra.conf'.format(self.config_dir), 'w') as f: print colors.yellow('[{0}\'s new config]'.format(self.name)) diff --git a/test/scenario_test/lib/quagga.py b/test/scenario_test/lib/quagga.py index 3cd29618..f36b56a8 100644 --- a/test/scenario_test/lib/quagga.py +++ b/test/scenario_test/lib/quagga.py @@ -225,6 +225,10 @@ class QuaggaBGPContainer(BGPContainer): c << 'hostname zebra' c << 'password zebra' c << 'log file {0}/zebra.log'.format(self.SHARED_VOLUME) + c << 'debug zebra packet' + c << 'debug zebra kernel' + c << 'debug zebra rib' + c << '' with open('{0}/zebra.conf'.format(self.config_dir), 'w') as f: print colors.yellow('[{0}\'s new config]'.format(self.name)) |