Closed tahir24434 closed 5 years ago
The random topology builder was not designed to be multi-vendor. I used it just for tests and as far as I remember it only supports Quagga-style and Arista EOS style startup configs.
Regarding the startup configuration mounting - I've responded in the disqus comment in my blog. I'll duplicate it here for searchability.
This problem is solved differently depending on what image you use. If you use native container image (e.g. cEOS or Quagga), then it's simply a matter of mounting a volume inside a container where it expects to find the startup configuration. For KVM-based images there are two approaches:
Thanks for sharing your thoughts. It helped me. I follow the idea of creating drive image from conf file and attach the drive to the VM. I did this by modifying the vrnetlab code.
There are two things which can be improved here
Generation of random VMX topology also generates the router configuration files like examples/builder/config-random/vmx-192-0-2-0. However, the configuration file, generated for VMX topology, holds the cisco based configuration rather than Junos.
While we are attaching these conf files to the pod using configmap, I'm still not sure whether we actually execute these configurations on router? I could not find anything in the code which load the attached configurations in the router device. Am I missing something here? If my assumption, that we do not load the conf file automatically, is true, then adding that capability would be a huge improvement.