Using chatbot to leverage DNAC
By using DNAC simply, we aim to reduce the burden on administrators in troubleshooting wireless LANs and improve the service level for end users.
This is written in Python 3.7.x and references these popular libraries :
- base64
- json
- logging
- os
- re
- sys
- time
- traceback
- flask
- requests
- urllib3
- urllib3.exceptions
This work will be announced by Team scrum at APJC SE Innovation Challenge: FY22 Hackathon event.
Use Case Description
- DNA Assurance is a very attractive content for customer demonstrations.
- There are even customers who decide to buy DNAC (DNA-A) based on the DNA Assurance demo alone.
- However, usually only administrators can see the DNAC management screen.
- In terms of actual operation, the administrator needs to open the screen to check every time there is an inquiry from a user.
Installation
- Get latest these files from repository:
code
├── chatux12_dnac_umbrella_amp4e.py
├── config.json
├── dictionary.json
└── index.html
- Put files to specific server or laptop.
- Update config.json according to Configuration section.
Configuration
Update the following values in config.json to suit your environment:
"hostname": "<hostname>" ... replace <hostname> to DNA server hostname
"username": "<username>" ... replace <username> to DNA server access user
"password": "<username>" ... replace <username> to DNA server access password
"umbrella_api_key": "" ... input Umbrella api-key
"amp4e_hostname": "" ... input AMP4E hostname
"amp4e_id": "" ... input AMP4E access id
"amp4e_key": "" ... input AMP4E access key
"reportingActivity": ["GET", "https://reports.api.umbrella.com/v2/organizations/<organizationId>/activity"] ... replace <organizationId> to AMP4E organization id
Usage
- Run chatux12_dnac_umbrella_amp4e.py on server or laptop.
- Access index.html using HTTP from client.
DevNet Sandbox
I don't have the right DevNet Sandbox environment.
How to test the software
Put and run this code on laptop.
Known issues
I don't have known issues.
Getting help
If you have questions, concerns, bug reports, etc., please mail to aohashi@cisco.com or create an issue against this repository.
Getting involved
Please refer to CONTRIBUTING file.
Credits and references