- 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 bash
and thenapk add expect
.
- Add your desired command templates to
config_templates
. - Run
generate_expect.py
. This will generate aconfig_writer
expect file. - Make sure the Docker container is set up.
- Copy the
config_writer
file to the frr docker container by running:docker cp config_writer myfrr:/
- Run
docker exec -it myfrr bash
to 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.py
to check and flag tests.