From a01b549fffd428f075b8732fde244c47baf28ecd Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Wed, 5 Aug 2015 17:16:31 +0900 Subject: *: kill protobuf path structure Signed-off-by: ISHIDA Wataru --- test/scenario_test/evpn_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/scenario_test/evpn_test.py') diff --git a/test/scenario_test/evpn_test.py b/test/scenario_test/evpn_test.py index 270773bb..b3e893c5 100644 --- a/test/scenario_test/evpn_test.py +++ b/test/scenario_test/evpn_test.py @@ -26,11 +26,11 @@ from noseplugin import OptionParser, parser_option from itertools import combinations def get_mac_mobility_sequence(pattr): - for ecs in [p['extended_communities'] for p in pattr + for ecs in [p['value'] for p in pattr if 'type' in p and \ p['type'] == BGP_ATTR_TYPE_EXTENDED_COMMUNITIES]: - for ec in [e for e in ecs if 'type' in e and e['type'] == 4]: - if ec['subtype'] == 5: + for ec in [e for e in ecs if 'type' in e and e['type'] == 6]: + if ec['subtype'] == 0: if 'sequence' not in ec: return 0 else: -- cgit v1.2.3