You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

A collection of tools to help out when working with CNaaS.

Faster template development

Test out new templates by doing a dry_run on a device without commiting the new template to git by using template_dry_run.py from https://raw.githubusercontent.com/SUNET/cnaas-nms/develop/src/cnaas_nms/tools/template_dry_run.py

You must have python3 with pip modules: requests, jinja2 and yaml installed. Then export ENV variables CNAASURL (URL to CNaaS API) and JWT_AUTH_TOKEN (a valid JWT token), change directory to the root of your templates and run the script like so:

/path/to/script/template_dry_run.py <dryrun_hostname>

Old config and new config for the device based on your un-commited templates will be printed to stdout.

Easier settings editing

Verify settings syntax inside the VScode editor without saving or committing to git by using https://github.com/SUNET/cnaas-nms-vscode

Download CNaaS-NMS VScode plugin

Better access-control list editing

Generate ACLs for Arista, Cisco, Juniper, IPtables etc from one single definition. Configure networks, groups and services and combine it with policies to generate ACLs that can be pasted into templates.

See Howto capirca

Automatic generation of ssh-key users

Generate template config for ssh-key users based of a a .ssh/authorized_keys file:

usage: ./sunet-arista-sshkeys.py < ~/.ssh/authorized_keys > users_template.j2

Download sunet-arista-sshkeys.py

  • No labels