I'm trying to look into automated testing with Cumulus VX so that if we plan to carry out a config change, we can get gitlab to run through a automated process to spin up some Cumulus VX vm's and confirm that the change won't break anything.
By default Cumulus VX will obviously not be able to mirror the same number of ports of a real hardware switch. This presents a small problem in that although I could carry out a small subset of tests on client connecting ports 1-8 for example, the 40G uplink ports 49-50 won't be 49-50 on Cumulus VX. The config would need to be modified in someway before being applied to the VX vm's, which slightly defeats the point of being able to test the exact config.
Anybody have any smart ideas how to handle this? Can you use something like udev to remap the last 2 ports of the VM to show up with the same numbers as the 40G ports on a hardware switch?