CSIT-207: Update LISP Eid API 57/1957/6
authorAndrej Kozemcak <akozemca@cisco.com>
Wed, 13 Jul 2016 15:19:31 +0000 (17:19 +0200)
committerJan Gelety <jgelety@cisco.com>
Thu, 28 Jul 2016 09:20:52 +0000 (09:20 +0000)
- rename show_local_lisp_eid_tabl ->  show_lisp_eid_table.
- change EID json output data

Change-Id: I4f5f7b5995b61cb0d5034b107c125caba1d73034
Signed-off-by: Andrej Kozemcak <akozemca@cisco.com>
resources/libraries/python/LispUtil.py
resources/libraries/robot/lisp/lisp_api.robot
resources/templates/vat/lisp/show_lisp_eid_table.vat [new file with mode: 0644]
resources/templates/vat/lisp/show_lisp_local_eid_table.vat [deleted file]
resources/test_data/lisp/api/lisp_api_resources.py

index 157702a..8a83dc4 100644 (file)
@@ -54,8 +54,8 @@ class LispUtil(object):
         return JsonParser().parse_data(vat.get_script_stdout())
 
     @staticmethod
-    def vpp_show_lisp_local_eid_table(node):
-        """Get lisp local eid table from VPP node.
+    def vpp_show_lisp_eid_table(node):
+        """Get lisp eid table from VPP node.
 
         :param node: VPP node.
         :type node: dict
@@ -64,7 +64,7 @@ class LispUtil(object):
         """
 
         vat = VatExecutor()
-        vat.execute_script_json_out('lisp/show_lisp_local_eid_table.vat', node)
+        vat.execute_script_json_out('lisp/show_lisp_eid_table.vat', node)
         return JsonParser().parse_data(vat.get_script_stdout())
 
     @staticmethod
index faffeb3..8094d08 100644 (file)
 | | ... | \| ${nodes['DUT1']} \| ${eid_table} \|
 | | ...
 | | [Arguments] | ${dut_node} | ${set_eid}
-| | ${show_eid}= | Vpp Show Lisp Local Eid Table | ${dut_node}
+| | ${show_eid}= | Vpp Show Lisp Eid Table | ${dut_node}
 | | Lisp Should Be Equal | ${set_eid} | ${show_eid}
 
 | Delete all lisp eid address from VPP
 | | ... | \| Then Lisp eid table should be empty \| ${nodes['DUT1']} \|
 | | ...
 | | [Arguments] | ${dut_node}
-| | ${show_eid}= | Vpp Show Lisp Local Eid Table | ${dut_node}
+| | ${show_eid}= | Vpp Show Lisp Eid Table | ${dut_node}
 | | Lisp Is Empty | ${show_eid}
 
 | Lisp map resolver address is set
diff --git a/resources/templates/vat/lisp/show_lisp_eid_table.vat b/resources/templates/vat/lisp/show_lisp_eid_table.vat
new file mode 100644 (file)
index 0000000..4a47a8f
--- /dev/null
@@ -0,0 +1 @@
+lisp_eid_table_dump
\ No newline at end of file
diff --git a/resources/templates/vat/lisp/show_lisp_local_eid_table.vat b/resources/templates/vat/lisp/show_lisp_local_eid_table.vat
deleted file mode 100644 (file)
index 87e276d..0000000
+++ /dev/null
@@ -1 +0,0 @@
-lisp_local_eid_table_dump
\ No newline at end of file
index 4502c3c..81bf8ee 100644 (file)
@@ -24,31 +24,52 @@ lisp_status = [{"gpe_status":"disabled",
 eid_table = [{'eid': '192.168.0.1',
               'vni': 0,
               'eid-prefix-len': 24,
-              'locator-set': 'ls1'},
+              'locator': [],
+              'locator-set': 'ls1',
+              'ttl': 0,
+              'authoritative': 0},
              {'eid': '192.168.1.1',
               'vni': 0,
               'eid-prefix-len': 24,
-              'locator-set': 'ls1'},
+              'locator': [],
+              'locator-set': 'ls1',
+              'ttl': 0,
+              'authoritative': 0},
              {'eid': '192.168.2.1',
               'vni': 0,
               'eid-prefix-len': 24,
-              'locator-set': 'ls1'},
+              'locator': [],
+              'locator-set': 'ls1',
+              'ttl': 0,
+              'authoritative': 0},
              {'eid': '192.168.3.1',
               'vni': 0,
               'eid-prefix-len': 24,
-              'locator-set': 'ls1'},
+              'locator': [],
+              'locator-set': 'ls1',
+              'ttl': 0,
+              'authoritative': 0},
              {'eid': '10:1::1',
               'vni': 0,
               'eid-prefix-len': 32,
-              'locator-set': 'ls1'},
+              'locator': [],
+              'locator-set': 'ls1',
+              'ttl': 0,
+              'authoritative': 0},
              {'eid': '10:2::1',
               'vni': 0,
               'eid-prefix-len': 32,
-              'locator-set': 'ls1'},
+              'locator': [],
+              'locator-set': 'ls1',
+              'ttl': 0,
+              'authoritative': 0},
              {'eid': '10:3::1',
               'vni': 0,
               'eid-prefix-len': 32,
-              'locator-set': 'ls1'}]
+              'locator': [],
+              'locator-set': 'ls1',
+              'ttl': 0,
+              'authoritative': 0}]
 
 # Example lisp map resolvers data we want set to VPP
 # and then check if it is set correctly.