is there a configuration. option in incus for a script to be executed before start and after stop networking as in lxc.network.script.up and lxc.network.script.down ? These are available in lxc!
No, we purposefully did not implement equivalents for those as Incus containers are meant to be moved around between systems easily and that kind of hook makes that pretty hard.
What are you trying to do through those hooks?