From 3707b5aedf11e1adc2bd35baba9d05a308ba384b Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Mon, 25 Dec 2017 14:46:04 +0900 Subject: test/lib/base: Delete FlowSpec routes with keyword Currently, in case of the FlowSpec routes, "prefix" value which stored on each container instance is just a keyword and not valid NLRI arguments for adding or deleting routes. So when deleting routes with "route" keyword, it is required to construct the NLRI arguments using "matchs" value. This patch enables to construct the valid NLIR arguments as "prefix" value when adding the FlowSpec routes and enables to delete the FlowSpec routes with "route" keyword. Signed-off-by: IWASE Yusuke --- test/lib/gobgp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/lib/gobgp.py') diff --git a/test/lib/gobgp.py b/test/lib/gobgp.py index 6422e79d..f0bff6d7 100644 --- a/test/lib/gobgp.py +++ b/test/lib/gobgp.py @@ -559,7 +559,7 @@ class GoBGPContainer(BGPContainer): cmd = 'gobgp global '\ 'rib add match {0} then {1} -a {2}'.format(' '.join(v['matchs']), ' '.join(v['thens']), v['rf']) else: - raise Exception('unsupported route faily: {0}'.format(v['rf'])) + raise Exception('unsupported route family: {0}'.format(v['rf'])) self.local(cmd) def del_route(self, route, identifier=None, reload_config=True): -- cgit v1.2.3