summaryrefslogtreecommitdiffstats
path: root/ctrl/sysrepo-plugins/hicn-plugin/test/README.md
diff options
context:
space:
mode:
authormhemmatp <mhemmatp@cisco.com>2019-12-16 11:07:06 +0100
committermhemmatp <mhemmatp@cisco.com>2019-12-19 10:49:25 +0100
commitcbdfa74c2f0adaf5d7ff51b6e74d75fd9b4cb0b7 (patch)
treeb809569909545ed546f5a5680b80d30235cc3bcf /ctrl/sysrepo-plugins/hicn-plugin/test/README.md
parenta6325a7343cc971cfca45fb50e4d7a9b9b5a2982 (diff)
[HICN-443] Adding test to hicn sysrepo plugin
Signed-off-by: mhemmatp <mhemmatp@cisco.com> Change-Id: Ib7568d9b44b94664822f3925682bab554c170e5a
Diffstat (limited to 'ctrl/sysrepo-plugins/hicn-plugin/test/README.md')
-rw-r--r--ctrl/sysrepo-plugins/hicn-plugin/test/README.md32
1 files changed, 32 insertions, 0 deletions
diff --git a/ctrl/sysrepo-plugins/hicn-plugin/test/README.md b/ctrl/sysrepo-plugins/hicn-plugin/test/README.md
new file mode 100644
index 000000000..a1c9bedff
--- /dev/null
+++ b/ctrl/sysrepo-plugins/hicn-plugin/test/README.md
@@ -0,0 +1,32 @@
+# test hICN sysrepo plugin
+
+Two simple tests are provided to verify the functionality of the plugin. In ```netconf-test``` you can find ```test.py``` which uses netconf-clinet library to send NETCONF command toward the sysrepo. This is the usage:
+```
+python test.py host user password operation
+```
+<b>host</b> indicates the host information. <b>user</b>, <b>password</b> are credentials to connect to the device. <b>Operation</b> can be one of the following:
+```
+- route_dump
+ It receives the route operational data from vpp
+- face_dump
+ It receives the face operational data from vpp
+- face_add
+ It adds an hICN face in the vpp
+- punt_add
+ It adds a punt in the vpp
+- route_add
+ It adds route in the vpp
+- face_dell
+ It deletes face from vpp
+- route_del
+ It deletes route from vpp
+- punt_del
+ It deletes punt from vpp
+```
+
+In the ```vapi-test``` you can find testing the VAPI for the communication between the hICN sysrepo plugin and vpp. This is the usage:
+
+```
+./test [route_add [4|6], punt_add [4|6], face_add [4|6], route_dump, face_dump]
+```
+The definition for the argument is the same as the netconf-test except that here you can choose the test for IPV4 and IPV6.