This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

Verify SDA fabric switches versions

Simple way of verifying deployed switch versions agaisnt the compatibility matrix

Requirements

  • Python3
  • pip3 install -r requirements.txt

Usage

Clone this repository, install the required libraries, and run.

python3 verifier.py username password url dna_version

Example

ivpinto@IVPINTO-M-K16Y sda_matrix_verifier % python3 verifier.py devnetuser 'Cisco123!' 'https://sandboxdnac.cisco.com/' 1.2.2 
Unsupported Version; Hostname: cat_9k_1.abc.inc Current version: 16.6.4a
Unsupported Version; Hostname: cat_9k_2.abc.inc Current version: 16.6.4a
Unsupported Version; Hostname: cs3850.abc.inc Current version: 16.6.2s

ivpinto@IVPINTO-M-K16Y sda_matrix_verifier % python3 verifier.py devnetuser 'Cisco123!' 'https://sandboxdnac.cisco.com/' 1.3.1.4
Correct version: cat_9k_1.abc.inc
Correct version: cat_9k_2.abc.inc
Unsupported Version; Hostname: cs3850.abc.inc Current version: 16.6.2s

We can see the devices cat_9k_1.abc.inc/cat_9k_2.abc.inc running version 16.6.4a are not supported on DNAC version 1.2.2 but is supported on version 1.3.1.4

Considerations

  • Script is not taking into consideration the device role
  • Not all device types are supported (e.g. extended nodes)
View code on GitHub

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.