LISP - implement changes done in VPP-376
[csit.git] / resources / test_data / lisp / api / lisp_api_resources.py
index 81bf8ee..cc97f1c 100644 (file)
@@ -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'},