Vlan Assignment Webex Teams Bot (Powered by Cisco DNA Center)

Assign switchport interfaces to access vlans using Webex Teams.

Quite a few IT organizations are still working with traditional L2/L3 networks without a NAC solution (e.g. Cisco ISE) providing automated Vlan allocation for each and every interfaces. Those customers' networking teams spend their time associating switch ports to requested Vlans in a manual, time consuming manner. As vlan association required administrative privileges on the network switches - there is a risk offloading the task to the IT helpdesk. Moreover, the simple vlan association command still requires the network engineer to sit in front of their computer. Using Cisco DNA Center's Intent API, we are able to provide:

  1. An easy to use Webex Teams bot that will allow network engineers to change switch ports' associated vlan from anywhere (using their smartphone or any device capable of accessing Webex Teams).
  2. An option to offload the repetitive task to less experienced teams, as the bot cannot make any change except associating vlans.

Demo

  1. Show switches:

  1. Show list of ports of a selected switch:

  1. Assign a port to a vlan:

How to setup

Python Webhook Listener

Table of content:

  1. Schedule a dCloud sandbox
  2. In case you've SSH'd to a previous dCloud session, clear the relevant SSH keys first vi ~/.ssh/known_hosts
  3. Get the dCloud sandbox ready by running python prepare_dcloud.py
  4. Run ngrok on the PC running the script ./ngrok http 5000
  5. Run python run.py to get the bot running
  6. Using Webex Teams, add the bot and start a conversation

Prerequisites

Cisco DNA-C

Prerequisites

  • Enable Cisco DNA-C as a Platform (the dCloud session is already ready). How-To Guide