X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftest_data%2Flisp%2Fapi%2Flisp_api_resources.py;h=cc97f1c0e3f986954714bb6be912630cf4fc078d;hb=3c863def2096b573832499985e3a12bbccf82ea8;hp=4502c3cb495de82374a356b2ea38e41d7e9e661e;hpb=021f8d100444281caf176b33f6dcc12bfba09f1f;p=csit.git diff --git a/resources/test_data/lisp/api/lisp_api_resources.py b/resources/test_data/lisp/api/lisp_api_resources.py index 4502c3cb49..cc97f1c0e3 100644 --- a/resources/test_data/lisp/api/lisp_api_resources.py +++ b/resources/test_data/lisp/api/lisp_api_resources.py @@ -21,34 +21,115 @@ 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-set': 'ls1'}, - {'eid': '192.168.1.1', + 'locator': [], + 'locator-set': 'ls1', + 'ttl': 0, + 'authoritative': 0}, + {'eid': '192.168.1.0', 'vni': 0, 'eid-prefix-len': 24, - 'locator-set': 'ls1'}, - {'eid': '192.168.2.1', + 'locator': [], + 'locator-set': 'ls1', + 'ttl': 0, + 'authoritative': 0}, + {'eid': '192.168.2.0', 'vni': 0, 'eid-prefix-len': 24, - 'locator-set': 'ls1'}, - {'eid': '192.168.3.1', + 'locator': [], + 'locator-set': 'ls1', + 'ttl': 0, + 'authoritative': 0}, + {'eid': '192.168.3.0', 'vni': 0, 'eid-prefix-len': 24, - 'locator-set': 'ls1'}, - {'eid': '10:1::1', + 'locator': [], + 'locator-set': 'ls1', + 'ttl': 0, + 'authoritative': 0}, + {'eid': '10:1::', 'vni': 0, - 'eid-prefix-len': 32, - 'locator-set': 'ls1'}, - {'eid': '10:2::1', + 'eid-prefix-len': 64, + 'locator': [], + 'locator-set': 'ls1', + 'ttl': 0, + 'authoritative': 0}, + {'eid': '10:2::', 'vni': 0, - 'eid-prefix-len': 32, - 'locator-set': 'ls1'}, - {'eid': '10:3::1', + 'eid-prefix-len': 64, + 'locator': [], + 'locator-set': 'ls1', + 'ttl': 0, + 'authoritative': 0}, + {'eid': '10:3::', 'vni': 0, - 'eid-prefix-len': 32, - 'locator-set': 'ls1'}] + '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.