pnat: fix the version of the PNAT plugin from the hardcoded 0.0.1 58/32458/6
authorAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 26 May 2021 17:27:50 +0000 (17:27 +0000)
committerOle Troan <ot@cisco.com>
Tue, 21 Sep 2021 13:35:07 +0000 (15:35 +0200)
Type: fix
Change-Id: I35db6763f3c5bd73169a222a4a93a917e8f468e6
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Signed-off-by: Ole Troan <ot@cisco.com>
src/plugins/nat/pnat/pnat_api.c

index eaefbaf..2c4a138 100644 (file)
@@ -22,6 +22,7 @@
 #include <vnet/ip/reass/ip4_sv_reass.h>
 #include <vnet/ip/reass/ip6_full_reass.h>
 #include <vnet/ip/reass/ip6_sv_reass.h>
+#include <vpp/app/version.h>
 
 /*
  * This file contains the API handlers for the pnat.api
@@ -193,7 +194,7 @@ clib_error_t *pnat_plugin_api_hookup(vlib_main_t *vm) {
  */
 #include <vnet/plugin/plugin.h>
 VLIB_PLUGIN_REGISTER() = {
-    .version = "0.0.1",
+    .version = VPP_BUILD_VER,
     .description = "Policy 1:1 NAT",
 };