cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8279
Views
4
Helpful
2
Replies

Configure switch/router using REST API ?

tvsubramanian77
Level 1
Level 1

Configure switch/router using REST API ?

can we configure cisco switch/router using rest api?

Thanks

Subbu

2 Replies 2

Mark Malone
VIP Alumni
VIP Alumni

I have not done this myself but you can use rest apis with 9ks

http://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/6-x/programmability/guide/b_Cisco_Nexus_9000_Series_NX-OS_Programmability_Guide/b_Cisco_Nexus_9000_Series_NX-OS_Programmability_Configuration_Guide_chapter_01.html

https://adamraffe.com/2013/12/02/nx-api-on-the-nexus-9000/

This  demonstrates the use of Python programming to provision a MPLS L3VPN on a service Provider Edge (PE) router using REST API. This example uses Cisco CSR1000v (IOS-XE) routers as PE routers.
- REST API management access to CSR1000v routers (pleae refer to the References at the end of this document).
- Python (Version 2.x or 3.x) and "Requests" Python library installed on the computer used for configuring the routers.
- Some basic knowledge Python programming.