Title: Re: [vpp-dev] Building router plugin
Hi,

I'm trying to compile vpp from git sources (git clone
https://gerrit.fd.io/r/vpp) + router plugin (also from git, but for vppsb: git clone https://gerrit.fd.io/r/vppsb). Compilation of vpp is working, but I would like to test tap inject from router plugin from vppsb (vpp sandbox). Compilation procedure from router/README.mk in vppsb directory doesn't work:

<quote>
## Build/Install

The router is implemented as a plugin to inject, e.g. arp, icmp4, traffic
from data plane devices. To use it, you must build the plugin and put it
in VPPs runtime plugin directory. The plugin depends on vpp and the netlink
repository from the vppsb project. This README assumes familiarity with the
build environment for both projects.

Build vpp, netlink, and router all at once by creating symbolic links in the
top level vpp directory to the netlink and router directories as well as
symbolic links to the respective .mk files in 'build-data/packages'.

```
$ cd /git/vpp
$ ln -sf /git/vppsb/netlink
$ ln -sf /git/vppsb/router
$ ln -sf ../../netlink/netlink.mk build-data/packages/
$ ln -sf ../../router/router.mk build-data/packages/
```

Now build everything and create a link to the plugin in vpp's plugin path.

```
$ cd build-root
$ ./bootstrap.sh
$ make V=0 PLATFORM=vpp TAG=vpp_debug router-install
$ ln -sf /git/vpp/build-root/install-vpp_debug-native/router/lib64/router.so.0.0.0 \
        /usr/lib/vpp_plugins/router.so
```

Once VPP is running and the plugin is loaded, data plane interfaces can
be tapped.

```
$ vppctl tap inject arp,icmp4 from TenGigabitEthernet2/0/0 as vpp0
```

</quote>

Regards
Luk


Luk,

Are you installing the vpp-dev (or vpp-devel if Centos) package?
I would imagine you'd need that for headers etc.

Ed

On Fri, Mar 24, 2017 at 8:14 AM, Łukasz Chrustek <
luk...@chrustek.net> wrote:

Hi Dave,

but this plugin isn't part of core vpp code tree, it is from vppsb.

Regards
Luk
> Dear Luk,

> The "vpp-install," "install-packags," "install-deb" etc. targets
> will build the set of plugins configured in src/
configure.ac:

> For example:

> $ cd build-root
> $ make PLATFORM=vpp TAG=vpp vpp-install

> HTH. Dave

> -----Original Message-----
> From:
vpp-dev-boun...@lists.fd.io
> [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Lukasz Chrustek
> Sent: Friday, March 24, 2017 4:55 AM
> To:
vpp-dev@lists.fd.io
> Subject: [vpp-dev] Building router plugin

> Hi,

> Can You advice what is the proper way for building router plugin now ?

> I'm trying to build this plugin as stated in README, but I get:

> # ./bootstrap.sh

> Saving PATH settings in /git/vpp/build-root/path_setup
> Source this file later, as needed
> Compile native tools
> @@@@ Arch for platform 'native' is native @@@@
> @@@@ Finding source for tools @@@@
> @@@@ Makefile fragment found in
> /git/vpp/build-root/packages/
tools.mk @@@@
> @@@@ Source found in /git/vpp/src @@@@
> @@@@ Configuring tools: nothing to do @@@@
> @@@@ Building tools: nothing to do @@@@
> @@@@ Installing tools: nothing to do @@@@

> # make V=0 PLATFORM=vpp TAG=vpp_debug router-install
> @@@@ Arch for platform 'vpp' is native @@@@
> @@@@ Finding source for vppinfra @@@@
> @@@@ Package vppinfra not found with path /git/vpp @@@@
> Makefile:780: recipe for target 'vppinfra-find-source' failed
> make: *** [vppinfra-find-source] Error 1

> compilation  of  vpp is working fine, but not from /git/vpp/build-root
> but from /git/vpp.

> Regards
> Luk

> _______________________________________________
> vpp-dev mailing list
>
vpp-dev@lists.fd.io
> https://lists.fd.io/mailman/listinfo/vpp-dev



--
Pozdrawiam,
Łukasz Chrustek

_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev



--
Pozdrowienia,
Łukasz Chrustek
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to