diff options
Diffstat (limited to 'test/scenario_test/evpn_test.py')
-rw-r--r-- | test/scenario_test/evpn_test.py | 6 |
1 files changed, 3 insertions, 3 deletions
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: |