diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-01-08 11:52:07 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-01-09 05:17:57 -0800 |
commit | b0fbcc6b1b18d2c9fe67437fe6432914b67c5508 (patch) | |
tree | eb453913e7612460cdea586050d616cf2b91312e /test | |
parent | 26c03bb779fbb59bb3de1c98a2c9d65e192b50bb (diff) |
config: change enum value type to string for ease of configuration
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test')
-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 22b68385..06924edd 100644 --- a/test/lib/gobgp.py +++ b/test/lib/gobgp.py @@ -244,9 +244,9 @@ class GoBGPContainer(BGPContainer): def f(v): if v == 'reject': - return 1 + return 'reject-route' elif v == 'accept': - return 0 + return 'accept-route' raise Exception('invalid default policy type {0}'.format(v)) if len(default_import_policy) > 0: |