From b0fbcc6b1b18d2c9fe67437fe6432914b67c5508 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Fri, 8 Jan 2016 11:52:07 +0900 Subject: config: change enum value type to string for ease of configuration Signed-off-by: ISHIDA Wataru --- test/lib/gobgp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/lib') 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: -- cgit v1.2.3