#clmel - zartmann.dk
TRANSCRIPT
Adam Radford - Distinguished Systems EngineerDEVWKS-2424
DevNet Workshop Network Plug and Play API on Cisco DNA Center
© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public
Cisco Webex Teams
Questions? Use Cisco Webex Teams (formerly Cisco Spark) to chat with the speaker after the session
Open the Cisco Events Mobile App
Find your desired session in the “Session Scheduler”
Click “Join the Discussion”
Install Webex Teams or go directly to the team space
Enter messages/questions in the team space
How
1
2
3
4
5
3
cs.co/ciscolivebot#DEVWKS-2424
© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public#CLMel
DEVWKS-2424 PnPWed 12pm
DEVNET-2425 Common Tasks
Fri 9am
DEVWKS-2872 Hands on Intent
Tue 1pm
DEVNET-2878 AssuranceWed 5pm
DEVWKS-2878 Assurance workshopWed 9am
DEVNET-2877 DNACaaPTue 3pm
DEVWKS-2879 DNACaaPWed-4pm
BRKRST-2674 Cisco DNA Center Automation
Day0 – DayN
Thu 12:50pm
4DEVWKS-2425
© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public#CLMel 6DEVWKS-2425
Relationships – post 1.2.8
/template-
programmer/template
/image/importation
/onboarding/pnp-
device/import
/onboarding/pnp-device/site-claim
/group?groupType=SITE
/siteprofile/site
new
© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public#CLMel
Create Template
Add Device
Create Workflow
Claim Device
Create Day0 Template
CreateNetwork Profile
Add Device
Claim Device
Add Sites to Profile
Pre Cisco DNA Center 1.2.8
Post Cisco DNA Center 1.2.8
1 2 3
4
5
Upload Image
7DEVWKS-2425
© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public#CLMel
Automate Onboarding Rules
8DEVWKS-2425
© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public#CLMel
Examples
# change to the new workflow repository in 1.2.8
cd PnP-BulkConfig-128
./00_pnp_devices.py
./10_add_and_claim.py work_files/bigtest.csv
./12_delete.py 12345678910
./12_delete.py work_files/bigtest.csv
https://github.com/CiscoDevNet/DNAC-onboarding-tools
9DEVWKS-2425
© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public#CLMel
Notes
• No current way to upload an .xls of template variables for PnP provisioning rules, hence use API
• Composite templates are not supported for PnP
• Day 0 is typically a bootstrap config, pretty common across all devices in all locations, but can be more specific. Operational choice.
10DEVWKS-2425
© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public#CLMel
PNP API Summary
Endpoint Verb Description
api/v1/onboarding/workflow GET/POST/DELETE CRUD on workflows
api/v1/onboarding/pnp-device/import
POST Add a device for pre-provisioned workflow. Needs to be claimed.
api/v1/onboarding/pnp-device/import
POST Claim a device. Attach a workflow to it
api/v1/onboarding/pnp-device GET/PUT/POST/DELETE CRUD on devices
api/v1/file/config POST upload an config file, rather than use a template
11DEVWKS-2425
© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public#CLMel
Device Configuration
Day 0 template
Site Settings- AAA- DNS
- NTP etc
Device Credentials
Day-N template(s)
Claim
Provision
QoS Policy
API Available(1.2.8)
12DEVWKS-2425
© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public#CLMel
Velocity Templates
13
https://blogs.cisco.com/developer/using-velocity-to-create-plug-and-play-
templates-in-dna-center-part-4
DEVWKS-2425
© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public#CLMel
DevNet Code Exchange
15
developer.cisco.com/codeexchange
Build yourdeveloper
cred
Get your code in front of the DevNet Community
Share your code
DEVWKS-2425
© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public#CLMel 16
Continue your education
Labs Cisco Demos
in WOS
Related Sessions
Meet the
Expert
DEVWKS-2425
• Give us your feedback and receive a complimentary Cisco Live 2019 Power Bank after completing the overall event evaluation and 5 session evaluations.
• All evaluations can be completed via the Cisco Live Melbourne Mobile App.
• Don’t forget: Cisco Live sessions will be available for viewing on demand after the event via https://ciscolive.cisco.com/
Complete Your Online Session Evaluation
© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public#CLMEL 17