Closed Lochnair closed 3 years ago
I think this is a good idea but I do not have enough experience with Vyatta so it would be great if someone could create a PR. @jollyjinx If you get started on this (as you mentioned in #14) please let us know here. Anyone else is also welcome to help out so marking this help-wanted.
I know very little about this, but having extra free time due to current circumstances, I'd love to learn new stuff. Just help me to kick start.
I haven't started yet as I wanted to understand the template system a bit more. What helped me was to add print statements to the node.def files so I could see what is happening when. As I don't know how to get the template system into debug mode.
I've created a branch for just switching over to get debug messages. I then have a crude command line that does install the current local version to the router:
scp -r wireguard router:/tmp/wireguard; ssh router 'cd /opt/vyatta/share/vyatta-cfg/templates/interfaces;sudo mv -f wireguard /tmp/wg.old.$(date +'%H%M%S') ; sudo mv /tmp/wireguard /opt/vyatta/share/vyatta-cfg/templates/interfaces/wireguard
and do my commands on the router console then while looking at the output of /tmp/wg.log
If someone knows a way to get the whole template system into debug mode - that would help a lot.
I just submitted a pull request to address this concern.
Fixed by #55
Copying this from the old issue.