diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-05-17 08:50:55 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-05-17 08:52:28 +0900 |
commit | 8fd25af4ce9ab902e24eb06644ef2e9c42cee7e0 (patch) | |
tree | fca38cf5df338ca0abae36c4579fb551fef2a66d /test/lib/gobgp.py | |
parent | 949c58fbf6d5ccb79ee87a5105968d3fe591a3a9 (diff) |
zebra: make zebra config consistent with the rests
- split config and state
- move to Bgp structure (aligned with Rpki, Bmp, and Mrt)
Also makes zebra configured via GRPC channel.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'test/lib/gobgp.py')
-rw-r--r-- | test/lib/gobgp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/gobgp.py b/test/lib/gobgp.py index 459e2c5f..7faa2198 100644 --- a/test/lib/gobgp.py +++ b/test/lib/gobgp.py @@ -327,8 +327,8 @@ class GoBGPContainer(BGPContainer): config['policy-definitions'] = policy_list if self.zebra: - config['global']['zebra'] = {'enabled': True, - 'redistribute-route-type-list':['connect']} + config['zebra'] = {'config':{'enabled': True, + 'redistribute-route-type-list':['connect']}} with open('{0}/gobgpd.conf'.format(self.config_dir), 'w') as f: print colors.yellow('[{0}\'s new config]'.format(self.name)) |