Ansible Collection to manage Nokia SR Linux devices. Documentation is provided at https://learn.srlinux.dev/ansible/collection/
Start with cloning the repo:
git clone git@github.com:nokia/srlinux-ansible-collection.git
cd srlinux-ansible-collection
Deploy the lab to support the tests:
./run.sh deploy-lab
Run the automated suite of tests to make sure nothing is missing. This will also prepare a dev environment (you have to make sure the venv with ansible is activated or ansible-playbook is in your path):
./run.sh test
To validate that the code passes Ansible's sanity check, run:
./run.sh sanity-test
To run an individual test, first make sure that the local code base is used by ansible. This can be done by running:
./run.sh prepare-dev-env
Then either run one of the provided test playbooks (defined in run.sh) or run your own:
./run.sh test-set-leaves