summaryrefslogtreecommitdiffstats
path: root/ctrl/sysrepo-plugins/hicn-plugin/test/README.md
blob: a1c9bedff92cd6d0acb09f021a109af8c9647f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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.