11-04-2020 09:47 PM
The modules herein simplify placing calls to Cisco's DNA Center. They handle all the complexity involved with making CRUD calls to Cisco DNAC including:
First, use the command pip install dnac to download the package and install it in your python site package listing.
Then, edit the wrapper's configuration file, dnac_config.py, with your Cisco DNA Center cluster information. Look in the directory python-root-dir/Lib/site-packages/dnac/ for the configuration file.
After installing the wrapper, import the Dnac class directly from the package but treat the various API modules as sub-packages. For example:
from dnac import Dnac d = Dnac() from dnac.networkdevice import NetworkDevice switch = NetworkDevice(d, "mySwitch")
02-21-2022 03:48 AM
@BrisaSchroeder69978 wrote:The modules herein simplify placing calls to Cisco's DNA Center. They handle all the complexity involved with making CRUD calls to Cisco DNAC including:
- Automatically logging in and getting an XAuth token
- Formatting URLs and filters to control requests to Cisco DNAC
- Parsing responses from Cisco DNAC and converting from json text into python objects
Installation and Usage
First, use the command pip install dnac to download the package and install it in your python site package listing.
Then, edit the wrapper's configuration file, dnac_config.py, with your Cisco DNA Center cluster information. Look in the directory python-root-dir/Lib/site-packages/dnac/ for the configuration file.
After installing the wrapper, import the Dnac class directly from the package but treat the various API modules as sub-packages. For example:
from dnac import Dnac d = Dnac() from dnac.networkdevice import NetworkDevice switch = NetworkDevice(d, "mySwitch")
Cisco DNA Center is a centralized network control and management dashboard for Cisco DNA, an intent-based networking solution.
This project provides a sample Python application and client libraries to access the Platform REST APIs for the Python language. The included sample application performs the following functions:
By default the sample application has disabled SSL certificate checking when connecting to Cisco DNA Center, but this can be re-enabled if desired. Mygroundbiz com
03-29-2022 12:02 AM
@BrisaSchroeder69978 wrote:The modules herein simplify placing calls to Cisco's DNA Center. They handle all the complexity involved with making CRUD calls to Cisco DNAC including:
- Automatically logging in and getting an XAuth token
- Formatting URLs and filters to control requests to Cisco DNAC
- Parsing responses from Cisco DNAC and converting from json text into python objects
Installation and Usage
First, use the command pip install dnac to download the package and install it in your python site package listing.
Then, edit the wrapper's configuration file, dnac_config.py, with your Cisco DNA Center cluster information. Look in the directory python-root-dir/Lib/site-packages/dnac/ for the configuration file.
After installing the wrapper, import the Dnac class directly from the package but treat the various API modules as sub-packages. For example:
from dnac import Dnac d = Dnac() from dnac.networkdevice import NetworkDevice switch = NetworkDevice(d, "mySwitch")
You need to note down the steps mentioned below in order to participate in this survey. McDVOICE
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide