Skip to content

Latest commit

 

History

History
28 lines (26 loc) · 1.16 KB

README.md

File metadata and controls

28 lines (26 loc) · 1.16 KB

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...