aboutsummaryrefslogtreecommitdiffstats
path: root/resources/templates
diff options
context:
space:
mode:
authorAndrej Kozemcak <akozemca@cisco.com>2016-05-04 15:39:38 +0200
committerAndrej Kozemcak <akozemca@cisco.com>2016-06-01 10:18:36 +0200
commitdeb6fdb6a59f5c02b8cacaa9c0e6043562e53646 (patch)
tree3d926de02f37f00cc100c46b4b277115cc2becb2 /resources/templates
parent38b0e2f738a81decc9d32e4d6cac678506fd090b (diff)
CSIT-125: Add test for lisp remote static mapping
Test Lisp functionality and rename lisp file Testing this topology: - IPv4 lisp topology - IPv6 lisp topology - IPv4 over IPv6 - IPv6 over IPv4 Change-Id: Ie3439ca802f1c8ae82a1dfcfdebe579f9dc47089 Signed-off-by: Andrej Kozemcak <akozemca@cisco.com>
Diffstat (limited to 'resources/templates')
-rw-r--r--resources/templates/vat/lisp/add_lisp_remote_mapping.vat1
-rw-r--r--resources/templates/vat/lisp/del_lisp_remote_mapping.vat1
-rw-r--r--resources/templates/vat/lisp/lisp.vat1
-rw-r--r--resources/templates/vat/lisp/show_lisp_enable_disable.vat1
4 files changed, 4 insertions, 0 deletions
diff --git a/resources/templates/vat/lisp/add_lisp_remote_mapping.vat b/resources/templates/vat/lisp/add_lisp_remote_mapping.vat
new file mode 100644
index 0000000000..d9a055a208
--- /dev/null
+++ b/resources/templates/vat/lisp/add_lisp_remote_mapping.vat
@@ -0,0 +1 @@
+lisp_add_del_remote_mapping add vni {vni} deid {deid}/{deid_prefix} seid {seid}/{seid_prefix} rloc {rloc}
diff --git a/resources/templates/vat/lisp/del_lisp_remote_mapping.vat b/resources/templates/vat/lisp/del_lisp_remote_mapping.vat
new file mode 100644
index 0000000000..f090ef97f5
--- /dev/null
+++ b/resources/templates/vat/lisp/del_lisp_remote_mapping.vat
@@ -0,0 +1 @@
+lisp_add_del_remote_mapping del vni {vni} deid {deid}/{deid_prefix} seid {seid}/{seid_prefix} rloc {rloc}
diff --git a/resources/templates/vat/lisp/lisp.vat b/resources/templates/vat/lisp/lisp.vat
new file mode 100644
index 0000000000..d7e97577d6
--- /dev/null
+++ b/resources/templates/vat/lisp/lisp.vat
@@ -0,0 +1 @@
+lisp_enable_disable {state}
diff --git a/resources/templates/vat/lisp/show_lisp_enable_disable.vat b/resources/templates/vat/lisp/show_lisp_enable_disable.vat
new file mode 100644
index 0000000000..2cd573ffb9
--- /dev/null
+++ b/resources/templates/vat/lisp/show_lisp_enable_disable.vat
@@ -0,0 +1 @@
+lisp_enable_disable_status_dump
s="n">pointer_to_uword (_b); #define _(TYPE) \ if (0 == ((pa | pb) & (sizeof (TYPE) - 1))) \ { \ TYPE * a = uword_to_pointer (pa, TYPE *); \ TYPE * b = uword_to_pointer (pb, TYPE *); \ \ while (bytes >= 2*sizeof (TYPE)) \ { \ TYPE a0, a1, b0, b1; \ bytes -= 2*sizeof (TYPE); \ a += 2; \ b += 2; \ a0 = a[-2]; a1 = a[-1]; \ b0 = b[-2]; b1 = b[-1]; \ a[-2] = b0; a[-1] = b1; \ b[-2] = a0; b[-1] = a1; \ } \ pa = pointer_to_uword (a); \ pb = pointer_to_uword (b); \ } if (BITS (uword) == BITS (u64)) _(u64); _(u32); _(u16); _(u8); #undef _ ASSERT (bytes < 2); if (bytes) { u8 *a = uword_to_pointer (pa, u8 *); u8 *b = uword_to_pointer (pb, u8 *); u8 a0 = a[0], b0 = b[0]; a[0] = b0; b[0] = a0; } } /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */