/srv/irclogs.ubuntu.com/2021/09/28/#netplan.txt

iomari891greetings, does netplan support pre-up scripts yet?14:37
slyoniomari891: not natively. but you can make use of the NetworkManager pre-up hooks (if using that backend/renderer): https://netplan.io/faq/#use-pre-up%2C-post-up%2C-etc.-hook-scripts14:41
iomari891ok. Is it difficult to implement in netplan? I'm curious as to why it has not been done yet?14:45
slyonYes. It is kind of difficult to implement, as netplan is only a "config generator", it does not run as a daemon in the background, thus it cannot listen to network interfaces changes14:46
slyonit only runs once during bootup for a few seconds and when executing 'netplan apply'14:46
iomari891understood, thanks14:48

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!