Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.02 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.02 KB

SR Linux Ansible Collection

Ansible Collection to manage Nokia SR Linux devices. Documentation is provided at https://learn.srlinux.dev/ansible/collection/

Quick start for developers

Start with cloning the repo:

git clone [email protected]: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

Running individual tests

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