Skip to content

Problem using LUA script on FRR (hook) #14701

@Alt0S04

Description

@Alt0S04

Hello, I'm experimenting with the FRR project and I've started to personalize it with a LUA script. I've followed the documentation to configure it but unfortunately, FRR can't find my script when I restart it.

I'm using FRR 9.1 compiled from source with the --enable-scripting option. I'm using LUA5.3 and a Linux Ubuntu 20.04 LTS.

Here's my script in /etc/frr/scripts/my_dplane_script (documentation example) :

function on_rib_process_dplane_results(ctx)
log.info(ctx.rinfo.zd_dest.network)
return {}

Here's what I've entered in my /etc/frr/frr.conf file to take the script into account: zebra on-rib-process script my_dplane_script

Finally, here's the error I got when I restarted FRR: [NK7EW-EWVP3] frrscript: failed loading script 'yes/my_dplane_script.lua': error: cannot open yes/my_dplane_script.lua: No such file or directory

I'm 100% sure that my script is in the right place and it's correct because it's the same as the one in the documentation.

Thank you in advance for the help :)

Metadata

Metadata

Assignees

Labels

triageNeeds further investigation

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions