X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftest_data%2Flisp%2Fapi%2Flisp_api_resources.py;h=cc97f1c0e3f986954714bb6be912630cf4fc078d;hp=81bf8ee1714e5e36586b1d4624597b44b267a2f2;hb=c75b9804c9510d0a342563e41407089145b38d50;hpb=2eb74f5c5cb58fcb072af765ea67dd80ee6d8755 diff --git a/resources/test_data/lisp/api/lisp_api_resources.py b/resources/test_data/lisp/api/lisp_api_resources.py index 81bf8ee171..cc97f1c0e3 100644 --- a/resources/test_data/lisp/api/lisp_api_resources.py +++ b/resources/test_data/lisp/api/lisp_api_resources.py @@ -21,56 +21,116 @@ lisp_status = [{"gpe_status":"disabled", # Example lisp local eid we want set to VPP # and then check if it is set correctly. -eid_table = [{'eid': '192.168.0.1', +eid_table = [{'eid': '192.168.0.0', 'vni': 0, 'eid-prefix-len': 24, 'locator': [], 'locator-set': 'ls1', 'ttl': 0, 'authoritative': 0}, - {'eid': '192.168.1.1', + {'eid': '192.168.1.0', 'vni': 0, 'eid-prefix-len': 24, 'locator': [], 'locator-set': 'ls1', 'ttl': 0, 'authoritative': 0}, - {'eid': '192.168.2.1', + {'eid': '192.168.2.0', 'vni': 0, 'eid-prefix-len': 24, 'locator': [], 'locator-set': 'ls1', 'ttl': 0, 'authoritative': 0}, - {'eid': '192.168.3.1', + {'eid': '192.168.3.0', 'vni': 0, 'eid-prefix-len': 24, 'locator': [], 'locator-set': 'ls1', 'ttl': 0, 'authoritative': 0}, - {'eid': '10:1::1', + {'eid': '10:1::', 'vni': 0, - 'eid-prefix-len': 32, + 'eid-prefix-len': 64, 'locator': [], 'locator-set': 'ls1', 'ttl': 0, 'authoritative': 0}, - {'eid': '10:2::1', + {'eid': '10:2::', 'vni': 0, - 'eid-prefix-len': 32, + 'eid-prefix-len': 64, 'locator': [], 'locator-set': 'ls1', 'ttl': 0, 'authoritative': 0}, - {'eid': '10:3::1', + {'eid': '10:3::', 'vni': 0, - 'eid-prefix-len': 32, + 'eid-prefix-len': 64, 'locator': [], 'locator-set': 'ls1', 'ttl': 0, 'authoritative': 0}] +# Expected data from VPP via VAT +eid_table_vat = [ + { + "action": 0, + "is_local": 1, + "eid": "192.168.0.0/24", + "vni": 0, + "ttl": 0, + "authoritative": 0 + }, + { + "action": 0, + "is_local": 1, + "eid": "192.168.1.0/24", + "vni": 0, + "ttl": 0, + "authoritative": 0 + }, + { + "action": 0, + "is_local": 1, + "eid": "192.168.2.0/24", + "vni": 0, + "ttl": 0, + "authoritative": 0 + }, + { + "action": 0, + "is_local": 1, + "eid": "192.168.3.0/24", + "vni": 0, + "ttl": 0, + "authoritative": 0 + }, + { + "action": 0, + "is_local": 1, + "eid": "10:1::/64", + "vni": 0, + "ttl": 0, + "authoritative": 0 + }, + { + "action": 0, + "is_local": 1, + "eid": "10:2::/64", + "vni": 0, + "ttl": 0, + "authoritative": 0 + }, + { + "action": 0, + "is_local": 1, + "eid": "10:3::/64", + "vni": 0, + "ttl": 0, + "authoritative": 0 + } +] + # Example lisp map resolvers data we want set to VPP # and then check if it is set correctly. map_resolver = [{'map resolver': '192.169.0.1'},