nsim: add packet loss simulation, docs
[vpp.git] / src / plugins / ioam / ioam_test.c
1 /*
2  * Copyright (c) 2018 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15
16 #include <vat/vat.h>
17 #include <vlibapi/api.h>
18 #include <vlibmemory/api.h>
19
20 clib_error_t * vxlan_gpe_ioam_export_vat_plugin_register (vat_main_t * vam);
21 clib_error_t * pot_vat_plugin_register (vat_main_t *vam);
22 clib_error_t * trace_vat_plugin_register (vat_main_t * vam);
23 clib_error_t * vxlan_gpe_vat_plugin_register (vat_main_t * vam);
24 clib_error_t * udp_ping_vat_plugin_register (vat_main_t * vam);
25
26 clib_error_t *
27 vat_plugin_register (vat_main_t *vam)
28 {
29   clib_error_t *err;
30
31   if ((err = pot_vat_plugin_register (vam)))
32     return err;
33
34   if ((err = vxlan_gpe_ioam_export_vat_plugin_register (vam)))
35     return err;
36
37   if ((err = trace_vat_plugin_register (vam)))
38     return err;
39
40   if ((err = vxlan_gpe_vat_plugin_register(vam)))
41     return err;
42
43   if ((err = udp_ping_vat_plugin_register (vam)))
44     return err;
45
46   return 0;
47 }