diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2020-01-07 08:57:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2020-01-07 08:57:00 +0000 |
commit | da609e6596731cc2455f9f18c8ed47ec475c5224 (patch) | |
tree | db72a876844eece87340710eb0b3cec528bc35ab /ctrl/sysrepo-plugins/hicn-plugin/test/README.md | |
parent | 82f51e4208ff86c034f94bd99ff367301e2faa4f (diff) | |
parent | cbdfa74c2f0adaf5d7ff51b6e74d75fd9b4cb0b7 (diff) |
Merge "[HICN-443] Adding test to hicn sysrepo plugin"
Diffstat (limited to 'ctrl/sysrepo-plugins/hicn-plugin/test/README.md')
-rw-r--r-- | ctrl/sysrepo-plugins/hicn-plugin/test/README.md | 32 |
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. |