VPP-492: Fix ability to change mac address of the interface
[vpp.git] / plugins / ioam-plugin / Makefile.am
index 2ea29e0..92b2b37 100644 (file)
@@ -28,7 +28,7 @@ ioam_pot_plugin_la_SOURCES =                  \
        ioam/lib-pot/pot_api.c
 
 BUILT_SOURCES =                                        \
-       ioam/lib-pot/pot.api.h
+       ioam/lib-pot/pot.api.h ioam/lib-pot/pot.py
 
 SUFFIXES = .api.h .api
 
@@ -37,6 +37,15 @@ SUFFIXES = .api.h .api
        $(CC) $(CPPFLAGS) -E -P -C -x c $^ \
        | vppapigen --input - --output $@ --show-name $@
 
+%.py: %.api
+       $(info Creating Python binding for $@)
+       $(CC) $(CPPFLAGS) -E -P -C -x c $<                              \
+       | vppapigen --input - --python -                                \
+       | pyvppapigen.py --input - > $@
+
+pyapidir = ${prefix}/vpp_papi_plugins
+pyapi_DATA = ioam/lib-pot/pot.py
+
 noinst_HEADERS =                               \
   ioam/lib-pot/pot_all_api_h.h                 \
   ioam/lib-pot/pot_msg_enum.h                  \
@@ -78,6 +87,35 @@ ioam_export_test_plugin_la_SOURCES =  \
 vppapitestplugins_LTLIBRARIES += ioam_export_test_plugin.la
 vppplugins_LTLIBRARIES += ioam_export_plugin.la
 
+########################################
+# iOAM Trace
+########################################
+ioam_trace_plugin_la_SOURCES =                 \
+       ioam/lib-trace/trace_util.c                     \
+       ioam/encap/ip6_ioam_trace.c             \
+       ioam/lib-trace/trace_util.h                     \
+       ioam/lib-trace/trace_api.c
+
+BUILT_SOURCES +=                                       \
+       ioam/lib-trace/trace.api.h ioam/lib-trace/trace.py
+
+pyapi_DATA += ioam/lib-trace/trace.py
+
+noinst_HEADERS +=                       \
+  ioam/export/ioam_export_all_api_h.h   \
+  ioam/lib-trace/trace_all_api_h.h                     \
+  ioam/lib-trace/trace_msg_enum.h                      \
+  ioam/lib-trace/trace.api.h                   \
+  ioam/lib-trace/trace_util.h
+
+ioam_trace_test_plugin_la_SOURCES =            \
+       ioam/lib-trace/trace_test.c                     \
+       ioam/lib-trace/trace_plugin.api.h
+
+vppapitestplugins_LTLIBRARIES += ioam_trace_test_plugin.la
+vppplugins_LTLIBRARIES += ioam_trace_plugin.la
+
+
 
 # Remove *.la files
 install-data-hook: