/srv/irclogs.ubuntu.com/2021/01/26/#netplan.txt

PeGaSuShello guys. just trying to figurer out if I could turn my netplan config into something like this: https://pastebin.groundzero.icu/view/4da510ba11:59
PeGaSuSthe idea is that this way I can automate the process of adding IPv6 addresses to the file11:59
slyonyes that works. you can add many IPv4 and IPv6 addresses. Just make sure you get the indentation right (it is off my a few spaces in the example you pasted)12:03
PeGaSuScool, thanks. but the paste was from a 'cat /etc/netplan/10-ifupdown.yaml'. I've only redacted the IPS and moved things12:17
PeGaSuSI've tried to keep the identantion as it was on the file12:18
PeGaSuSI've switched from ifupdown to netplan, on a Ubuntu freash install using 'ENABLE_TEST_COMMANDS=1 netplan migrate'12:19
PeGaSuSs/freash/fresh/12:19
PeGaSuSso far, all seems to work as expected12:20
slyoncool! Well, I guess you're good if everything works as expected. But to me the first list entries (like "- 8.8.8.8" and "- re.da.ct.ed/24") look of by like two spaces. They should be in line with the other list entries, indentation wise12:45
PeGaSuSyou mean that it should be 'block begin -> 4 spaces top level -> 8 spaces top level vars'?12:54
PeGaSuSI see what you mean. I guess my pastebin mangled some spaces12:55
slyonyeah. If it works for you than that's probably the case12:56
PeGaSuSyeah, it's the pastebin. somehow the 1st entry of each list gets one space less than the others. if i do 'cat /etc/netplan/10-ifupdown.yaml' all is idented properly. still, nice catch.13:00
=== akp55_ is now known as akp55__

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