Simple Port Configurations GUI
A simple interface to configure ports on switches. With this interface, we can enable and disable interfaces, add and delete VLANs and change speed and duplex settings per interface. We make the configurations using RESTCONF. Altogether, it allows remote teams to make simple configurations to the network.
Workflow
Interface
Contacts
Solution Components
- Python
- RESTCONF on device
- IOS-XE
Prerequisites
Installation
-
Clone the repository
-
Open the credentials.yml
file and add the following information:
port_switches:
- ''
port_switches_username: ''
port_switches_password: ''
vlans_to_exclude: []
-
(Optional) Create a Python virtual environment and activate it (find instructions here).
-
In a terminal, install the requirements with pip install -r requirements.txt
.
-
In a terminal, navigate to the root directory and start the Flask application by running python main.py
.
-
In a browser, go to localhost:5001
to open the application.
License
Provided under Cisco Sample Code License, for details see LICENSE.
Code of Conduct
Our code of conduct is available here.
Contributing
See our contributing guidelines here.
Use Case
GVE DevNet Simple Ports Configurations RESTCONF GUI
In this PoV, we created a GUI that can make simple ports configurations to IOS-XE devices using RESTCONF. Examples of configurations include adding and deleting VLANs,
enabling and disabling interfaces, adjusting speed and duplex settings. Moreover, the GUI provides an overview of common show
commands, e.g.,
show ip int brief
, show vlan
, etc., but also general interface information.
White Paper
Provide links to related white papers:
Provide a link to a related DevNet Sandbox:
Links to DevNet Learning Labs
Provide links to related Learning Labs or modules on DevNet:
Solutions on Ecosystem Exchange
Provide links to related solutions on DevNet Ecosystem Exchange: