aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2018-10-31 19:06:54 +0100
committerDamjan Marion <dmarion@me.com>2018-11-05 12:35:02 +0000
commite7a4e4c412a4e6fbde8df79d4080c5ef5a72c148 (patch)
tree94a220fb44e40492d758d81da9f178da896b347a
parent5b718d5cf8bd8df82e37825e0cdb6f986d9a784a (diff)
Don't autodetect plugin path if set on cmdline
Change-Id: Idf79f261a7590038c1813d3996f4644e3d7e0cbe Signed-off-by: Klement Sekera <ksekera@cisco.com>
-rw-r--r--src/vpp/vnet/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vpp/vnet/main.c b/src/vpp/vnet/main.c
index 89dfedcd015..41f70d0c8f1 100644
--- a/src/vpp/vnet/main.c
+++ b/src/vpp/vnet/main.c
@@ -29,7 +29,7 @@
/*
* Load plugins from /usr/lib/vpp_plugins by default
*/
-char *vlib_plugin_path = "/usr/lib/vpp_plugins";
+char *vlib_plugin_path = NULL;
char *vlib_plugin_app_version = VPP_BUILD_VER;
static void
@@ -84,7 +84,8 @@ vpe_main_init (vlib_main_t * vm)
*/
vat_plugin_hash_create ();
- vpp_find_plugin_path ();
+ if (!vlib_plugin_path)
+ vpp_find_plugin_path ();
}
/*