Skip to content

WouterDePrins/Cisco_RESTCONF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Cisco RESTCONF

Cisco Catalyst 9000 with Python and RESTCONF


This Python script allows you to communicate with a Cisco Catalyst switch through RESTCONF and Python. RESTCONF is a new way to configure and automate network devices and supports XML and JSON.

This basic script is created to show the possibilities what you can do with RESTCONF without touching CLI. For now, you can show/change the hostname and show/change/add VLAN's through a Python shell.


Requirements:
  • A Cisco Catalyst switch that with an IOS-XE (>= 16.8.1) release
  • Python 3
  • Requests (pip3 install requests)
  • Enable 'ip http server' and 'restconf' on the switch

Demo

C9K Python RESTCONF


This script is only a basic example but imagine the automation you could implement with RESTCONF without using third party stuff...

About

Cisco Catalyst 9000 - RESTCONF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages