diff options
Diffstat (limited to 'test/scenario_test/lib')
-rw-r--r-- | test/scenario_test/lib/gobgp.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/scenario_test/lib/gobgp.py b/test/scenario_test/lib/gobgp.py index 2c48c179..445c4205 100644 --- a/test/scenario_test/lib/gobgp.py +++ b/test/scenario_test/lib/gobgp.py @@ -39,8 +39,6 @@ class GoBGPContainer(BGPContainer): def _start_gobgp(self): zebra_op = '' - if self.zebra: - zebra_op = '-z' c = CmdBuffer() c << '#!/bin/bash' c << '/go/bin/gobgpd -f {0}/gobgpd.conf -l {1} -p {2} > ' \ @@ -276,6 +274,9 @@ class GoBGPContainer(BGPContainer): if len(policy_list) > 0: config['PolicyDefinitions'] = {'PolicyDefinitionList': policy_list} + if self.zebra: + config['Global']['Zebra'] = {'Enabled': True} + with open('{0}/gobgpd.conf'.format(self.config_dir), 'w') as f: print colors.yellow('[{0}\'s new config]'.format(self.name)) print colors.yellow(indent(toml.dumps(config))) |