Generated Config through script


#1

Hi Guys,

A quick question, we have quite a big config with a huge amount of firewall rules and nested group objects, which as far as I can see is not currently supported.

What I am looking at doing is storing some configuration in a database (current thinking is sqlite) and then generating the config on the fly.

Is there a way for vyos to execute a script (python) for the config instead of loading the config directly?

If I trust my memory, I read something to that effect somewhere, but I can’t seem to find it again.

Kind regards


#2

Hi, @wildcoder!
Of course, you can generate configuration by triggering some script with task-scheduler, for example.