diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-08-05 17:16:31 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-08 20:56:46 +0900 |
commit | a01b549fffd428f075b8732fde244c47baf28ecd (patch) | |
tree | 9f4d6a8c56d9ab068fd1bb5b85ca9fa59e0ba1e2 /test/scenario_test/evpn_test.py | |
parent | bd912231e5509829bdb6b892344d4b14ca0b3b29 (diff) |
*: kill protobuf path structure
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
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: |