$ make wipe
-Define environmental variable 'VPP_WITH_SAMPLE_PLUGIN=yes' with a process scope
+Define environmental variable 'SAMPLE_PLUGIN=yes' with a process scope
- $ VPP_WITH_SAMPLE_PLUGIN=yes make build
+ $ SAMPLE_PLUGIN=yes make build
or a session scope, and build VPP.
- $ export VPP_WITH_SAMPLE_PLUGIN=yes
- & make build
+ $ export SAMPLE_PLUGIN=yes
+ $ make build
Now run VPP and make sure the plugin is loaded.
...
load_one_plugin:184: Loaded plugin: memif_plugin.so (Packet Memory Interface (experimetal))
load_one_plugin:184: Loaded plugin: sample_plugin.so (Sample of VPP Plugin)
- load_one_plugin:184: Loaded plugin: snat_plugin.so (Network Address Translation)
+ load_one_plugin:184: Loaded plugin: nat_plugin.so (Network Address Translation)
...
DBGvpp#