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 | 11:59 |
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:03 |
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:17 |
PeGaSuS | I've tried to keep the identantion as it was on the file | 12:18 |
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:19 |
PeGaSuS | so far, all seems to work as expected | 12:20 |
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:45 |
PeGaSuS | you mean that it should be 'block begin -> 4 spaces top level -> 8 spaces top level vars'? | 12:54 |
PeGaSuS | I see what you mean. I guess my pastebin mangled some spaces | 12:55 |
slyon | yeah. If it works for you than that's probably the case | 12:56 |
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. | 13:00 |
=== akp55_ is now known as akp55__ |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!