Router plugin is not loaded


Justin Iurman <justin.iurman@...>
 

Hi folks,

By following this link [1], I could see the router plugin was loaded as expected. So far so good, everything was working fine. But this install process was taking too much time and the size of the exported VM was around 4,5G. So I decided to try the external compilation technique, as I've always been doing so for my own plugin. This way, the install process is faster and the VM size is drastically reduced.

The problem with this technique is that I can't for the life of me figure out why the router plugin isn't loaded properly. It doesn't show up with "show plugins". During compilation (netlink and router), everything worked fine without any error.

Netlink:
$ autoreconf -fis
$ ./configure
$ make
$ sudo make install

Router:
$ autoreconf -fis
$ ./configure --with-plugin-toolkit
$ make
$ sudo make install

Note that "router.so" is inside /usr/lib/vpp_plugins/, as expected. Do you have any idea of the problem ?

Thanks,
Justin


[1] https://github.com/FRRouting/frr/wiki/Alternate-forwarding-planes:-VPP


Justin Iurman <justin.iurman@...>
 

Solved, found the problem. Actually, running "ldconfig" seems mandatory after compilation/install, even if it looks like it was already done when installing netlink/router (output is the proof). I'm not sure it's an expected behavior, though.

Cheers,
Justin

Hi folks,

By following this link [1], I could see the router plugin was loaded as
expected. So far so good, everything was working fine. But this install process
was taking too much time and the size of the exported VM was around 4,5G. So I
decided to try the external compilation technique, as I've always been doing so
for my own plugin. This way, the install process is faster and the VM size is
drastically reduced.

The problem with this technique is that I can't for the life of me figure out
why the router plugin isn't loaded properly. It doesn't show up with "show
plugins". During compilation (netlink and router), everything worked fine
without any error.

Netlink:
$ autoreconf -fis
$ ./configure
$ make
$ sudo make install

Router:
$ autoreconf -fis
$ ./configure --with-plugin-toolkit
$ make
$ sudo make install

Note that "router.so" is inside /usr/lib/vpp_plugins/, as expected. Do you have
any idea of the problem ?

Thanks,
Justin