Skip to content

brybyrne/DEVWKS-1467

Repository files navigation

This repo is the companion for a DevNet Workshop delivered at Cisco Live in June of 2023. The workshop leverages Cisco's yangsuite to walk through the basics of NETCONF and YANG. A high level lab guide can be found here.

For Task 1 and 2 open Explore-->YANG from the left hand menu


===================================

Task 1 - View a Standard YANG Model as a Tree

image


===================================

Task 2 - View a Native YANG Model as a Tree

image


===================================

For the remaing tasks open Protocols-->NETCONF from the left hand menu


===================================

Task 3 - Retrieving Device Configuration with NETCONF

image

  1. Change RPC Options to "Explicit - only report default values if explicitly set"
  2. Click Build RPC
  3. Click Run RPC

===================================

Task 4a - Applying a NETCONF Filter to Retrieve YANG Containers

image

  1. Change RPC Options to "Explicit - only report default values if explicitly set"
  2. Click Build RPC
  3. Click Run RPC

Task 4b - Applying a NETCONF Filter to Retrieve Specific List Values

image

  1. Change RPC Options to "Explicit - only report default values if explicitly set"
  2. Right click the Interface Container and select "Add another list entry"
  3. Enter Loopback Interface 1 and Loopback Interface 2
  4. Click Build RPC
  5. Click Run RPC

===================================

Task 5 - Retrieving Operational Details with NETCONF

image

  1. Change RPC Options to "Explicit - only report default values if explicitly set"
  2. Click Build RPC
  3. Click Run RPC

===================================

Task 6 - Edit Configratuion Details with NETCONF

image

  1. Change RPC Options to "Explicit - only report default values if explicitly set"
  2. Click Build RPC
  3. Click Run RPC

===================================

Task 7 - Edit and Verify Configuration Details with NETCONF

SUB TASK 1

image

  1. Change RPC Options to "Explicit - only report default values if explicitly set"
  2. Click Build RPC

DO NOT CLICK RUN RPC

SUB TASK 2

image

  1. Click Build RPC

NOW CLICK RUN RPC


===================================

Task 8 - Auto generate code examples

Sub Task 8a

image

  1. Change RPC Options to "Explicit - only report default values if explicitly set"
  2. Click Build RPC
  3. From the Replay drop down select "Generate Python Script"

Sub Task 8b

image

  1. Change RPC Options to "Explicit - only report default values if explicitly set"
  2. Click Build RPC
  3. From the Replay drop down select "Generate Ansible Playbook"
  4. When prompted name the playbook task_8.yaml

Sub Task 8c

Optional - from the terminal run and review the python code

cat script.py

Run the python script:

python script-3.py -a sandbox-iosxe-latest-1.cisco.com -u admin -p C1sco12345

The output should be XML showing the status of interface Loopback1467xx

THE END

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published