How do you test changes made to interface definitions and templates?

Sorry if this is a dumb question, but I read Build VyOS — VyOS 1.4.x (sagitta) documentation and still don’t quite understand how to quickly test changes made to an interface definition XML file. How do I test changes made to interface definitions and verify templates generate expected results based on a command I added? Do I have to rebuild an ISO every time? If so, how do I tell the build docker container to use my repository?

Thanks!

You can build .deb pkg (from vyos-1x) send it to the remote VyOS node and install

debuild -us -uc -b

Thank you!

It looks like it works up until I get this error

======================================================================
ERROR: test_dh_key_256 (test_configverify.TestDictSearch)

Traceback (most recent call last):
File “/home/justin/Desktop/vyos-1x/src/tests/test_configverify.py”, line 32, in test_dh_key_256
cmd(f’openssl dhparam -out {dh_file} {key_len}’)
File “/home/justin/Desktop/vyos-1x/python/vyos/util.py”, line 161, in cmd
raise OSError(code, feedback)
PermissionError: [Errno 1] failed to run command: openssl dhparam -out /tmp/dh.pem 256
returned:
exit code: 1

Then it runs some tests and at the end I get:

FAILED (errors=1)
make[2]: *** [Makefile:118: test] Error 1
make[2]: Leaving directory ‘/home/justin/Desktop/vyos-1x’
make[1]: *** [debian/rules:29: override_dh_auto_build] Error 2
make[1]: Leaving directory ‘/home/justin/Desktop/vyos-1x’
make: *** [debian/rules:19: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -b failed

This is on Ubuntu 22.04. All of the dependencies it asked for the first time I tried to run it are installed, and I am running as sudo / root user.

Any ideas as to how I might be able to solve this? I’ve been a Linux user for a while, but this is my first time trying to build a deb

I usually use docker vyos/vyos-build