- Make sure you have a clone of pict in your clone of this repo -
git clone https://github.com/microsoft/pict.git - Make sure to start/restart the frr container by running
min_frr_config.py. - Then make sure that expect is installed in the container by running
docker exec -it myfrr bashand thenapk add expect.
- Add your desired command templates to
config_templates. - Run
generate_expect.py. This will generate aconfig_writerexpect file. - Make sure the Docker container is set up.
- Copy the
config_writerfile to the frr docker container by running:docker cp config_writer myfrr:/ - Run
docker exec -it myfrr bashto access the frr container. - Run
expect config_writer, wait for it to finish. - Copy the file's over by running
docker cp myfrr:/tests.log . - Run
check_logs.pyto check and flag tests.