[11:59] <PeGaSuS> hello guys. just trying to figurer out if I could turn my netplan config into something like this: https://pastebin.groundzero.icu/view/4da510ba
[11:59] <PeGaSuS> the idea is that this way I can automate the process of adding IPv6 addresses to the file
[12:03] <slyon> yes 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:17] <PeGaSuS> cool, thanks. but the paste was from a 'cat /etc/netplan/10-ifupdown.yaml'. I've only redacted the IPS and moved things
[12:18] <PeGaSuS> I've tried to keep the identantion as it was on the file
[12:19] <PeGaSuS> I've switched from ifupdown to netplan, on a Ubuntu freash install using 'ENABLE_TEST_COMMANDS=1 netplan migrate'
[12:19] <PeGaSuS> s/freash/fresh/
[12:20] <PeGaSuS> so far, all seems to work as expected
[12:45] <slyon> cool! 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 wise
[12:54] <PeGaSuS> you mean that it should be 'block begin -> 4 spaces top level -> 8 spaces top level vars'?
[12:55] <PeGaSuS> I see what you mean. I guess my pastebin mangled some spaces
[12:56] <slyon> yeah. If it works for you than that's probably the case
[13:00] <PeGaSuS> yeah, 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.