{"id":24678786,"url":"https://github.com/tes3awy/cisco-catalyst-center-webhooks","last_synced_at":"2026-04-25T11:35:09.821Z","repository":{"id":273870998,"uuid":"921142176","full_name":"Tes3awy/cisco-catalyst-center-webhooks","owner":"Tes3awy","description":"Webhook Testing with Cisco Catalyst Center (a.k.a DNA Center)","archived":false,"fork":false,"pushed_at":"2025-02-02T19:18:56.000Z","size":632,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T21:11:26.520Z","etag":null,"topics":["api","catalyst-center-automation","cisco","flask","real-time","webhook","websocket"],"latest_commit_sha":null,"homepage":"https://developer.cisco.com/codeexchange/github/repo/Tes3awy/cisco-catalyst-center-webhooks","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tes3awy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-23T12:19:53.000Z","updated_at":"2025-02-02T19:18:59.000Z","dependencies_parsed_at":"2025-06-06T21:10:39.744Z","dependency_job_id":"c4f7281c-105e-46a6-847f-64d13f6ad04b","html_url":"https://github.com/Tes3awy/cisco-catalyst-center-webhooks","commit_stats":null,"previous_names":["tes3awy/cisco-catalyst-center-webhooks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tes3awy/cisco-catalyst-center-webhooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2Fcisco-catalyst-center-webhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2Fcisco-catalyst-center-webhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2Fcisco-catalyst-center-webhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2Fcisco-catalyst-center-webhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tes3awy","download_url":"https://codeload.github.com/Tes3awy/cisco-catalyst-center-webhooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2Fcisco-catalyst-center-webhooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32261116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","catalyst-center-automation","cisco","flask","real-time","webhook","websocket"],"created_at":"2025-01-26T13:18:13.981Z","updated_at":"2026-04-25T11:35:04.835Z","avatar_url":"https://github.com/Tes3awy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![published](https://static.production.devnetcloud.com/codeexchange/assets/images/devnet-published.svg)](https://developer.cisco.com/codeexchange/github/repo/Tes3awy/cisco-catalyst-center-webhooks)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat\u0026labelColor=ef8336)](https://pycqa.github.io/isort/)\n![GitHub commit activity](https://img.shields.io/github/commit-activity/m/Tes3awy/cisco-catalyst-center-webhooks)\n![GitHub contributors](https://img.shields.io/github/contributors/Tes3awy/cisco-catalyst-center-webhooks)\n![GitHub Issues or Pull Requests by label](https://img.shields.io/github/issues/Tes3awy/cisco-catalyst-center-webhooks/gh)\n![GitHub Issues or Pull Requests by label](https://img.shields.io/github/issues-pr/Tes3awy/cisco-catalyst-center-webhooks/gh)\n![GitHub License](https://img.shields.io/github/license/Tes3awy/cisco-catalyst-center-webhooks)\n\n# Webhook Testing with Cisco Catalyst Center (a.k.a DNA Center)\n\n## Objective\n\nThis project is a Proof of Concept (PoC) for the use of webhooks with Cisco SDN solutions, specifically integrating with Cisco Catalyst Center. It leverages a Flask application to receive and process webhook notifications in real-time, showcasing how events from the Cisco Catalyst Center can be handled programmatically.\n\n|                    Webhook Receiver Up                    |                      Webhook Receiver Down                      |\n| :-------------------------------------------------------: | :-------------------------------------------------------------: |\n| ![Server Up](assets/server-up.jpeg \"Webhook Receiver Up\") | ![Server Down](assets/server-down.jpeg \"Webhook Receiver Down\") |\n\n# Table of Contents\n\n- [Objective](#objective)\n- [Features](#features)\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Use Case](#use-case)\n- [Security Considerations/Improvements](#security-considerationsimprovements)\n- [Debugging Tips](#debugging-tips)\n- [Author(s)](#authors)\n- [Getting involved](#getting-involved)\n- [References](#references)\n\n## Features\n\n**[`^        back to top        ^`](#webhook-testing-with-cisco-catalyst-center-aka-dna-center)**\n\n- **Webhook Integration**: Receive and process notifications from Cisco Catalyst Center.\n- **Websockets**: Enable ongoing, full-duplex, bidirectional communication between client and server.\n- **Real-time Updates**: Display incoming notifications in a dynamically updating dashboard web page.\n- **Authentication**: Secure webhook endpoints with basic authentication.\n- **Notification Sound**: Play a sound when a new notification is received.\n- **Pagination**: Display event notifications in a paginated format.\n\n## Prerequisites\n\n**[`^        back to top        ^`](#webhook-testing-with-cisco-catalyst-center-aka-dna-center)**\n\n- Python 3.9+\n- Flask\n- Cisco Catalyst Center with webhook enabled\n\n## Installation\n\n**[`^        back to top        ^`](#webhook-testing-with-cisco-catalyst-center-aka-dna-center)**\n\n1. Clone the repo\n\n```bash\n$ git clone https://github.com/Tes3awy/cisco-catalyst-center-webhooks.git\n$ cd cisco-catalyst-center-webhooks\n```\n\n2. Setup a virtual environment (Optional but recommended)\n\n```bash\n$ python -m venv .venv\n$ source .venv/bin/activate . # On Windows, use `.\\.venv\\Scripts\\Activate.ps1` in powershell\n(.venv)$ \n```\n\n3. Install SQLite3\n\n\u003e Linux\n\n```bash\n$ sudo apt update \u0026\u0026 sudo apt upgrade -y\n$ sudo apt install sqlite3 -y\n$ sqlite3 --version\n```\n\n\u003e Windows\n\nFollow this [tutorial](https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/SQLite3-How-to-download-and-install-SQLite-on-Windows-version-latest-tutorial)\n\n4. Install dependencies\n\n```bash\n(.venv)$ pip install -r requirements.txt\n```\n\n5. Set _private_ environment variables\n\nCreate a `.env` file in the root directory and add the following:\n\n```env\nBASIC_AUTH_USERNAME=\"USERNAME\"\nBASIC_AUTH_PASSWORD=\"PASSWORD\"\n```\n\n6. Run the application\n\n```bash\n(.venv)$ flask run\n * Serving Flask app 'run'\n * Debug mode: on\nWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.\n * Running on all addresses (0.0.0.0)\n * Running on https://127.0.0.1:5443\nPress CTRL+C to quit   \n * Restarting with stat\n * Debugger is active!\n * Debugger PIN: 419-253-304\n***** Copy Headers for Cisco Catalyst Center Webhook *****\n Authorization: Basic YWRtaW46Q2lzY28hMjM0NQ==\n Content-Type: application/json\n***** Copy Headers for Cisco Catalyst Center Webhook *****\n```\n\n7. Configure Cisco Catalyst Center\n\n- Navigate to **System \u003e Settings \u003e External Services \u003e Destination \u003e Webhook** in the Catalyst Center dashboard.\n- Add a new POST webhook with the Webhook URL `https://\u003cip_address\u003e:5443/api/v1/webhook`.\n- For the Trust Certificate radio button, choose **No**.\n- For Authentication, choose **Basic** and set the required headers: \n  - `Content-Type: application/json`\n  - `Authorization: Basic \u003cBASE64 of username:password\u003e`\n- Configure a webhook destination for an event. _(Refer to the references section)_\n\n## Usage\n\n**[`^        back to top        ^`](#webhook-testing-with-cisco-catalyst-center-aka-dna-center)**\n\nOnce the application is running, it will listen for webhook notifications from Cisco Catalyst Center. When a notification is received, it will be displayed on the dashboard in real-time.\n\n## Use Case\n\nThis project can be used to monitor and respond to events from Cisco Catalyst Center in real-time. For example, you can use it to:\n\n- Monitor network changes, such as device additions, deletions, or modifications.\n- Monitor network performance and troubleshoot issues in real-time.\n- Trigger automated responses to network events, such as sending alerts or notifications.\n- Analyze network data and trends over time.\n\n## Security Considerations/Improvements\n\n**[`^        back to top        ^`](#webhook-testing-with-cisco-catalyst-center-aka-dna-center)**\n\n- Use HTTPs to secure webhook communications.\n- Validate all incoming requests using a custom authentication token.\n\n## Debugging Tips\n\n**[`^        back to top        ^`](#webhook-testing-with-cisco-catalyst-center-aka-dna-center)**\n\nCheck the Flask application logs in the terminal for errors and/or warnings.\n\n## Author(s)\n\n**[`^        back to top        ^`](#webhook-testing-with-cisco-catalyst-center-aka-dna-center)**\n\nThis project was written and is maintained by the following individuals:\n\n* Osama Abbas \u003coabbas2512@gmail.com\u003e\n\n## Getting involved\n\n**[`^        back to top        ^`](#webhook-testing-with-cisco-catalyst-center-aka-dna-center)**\n\nContributions are welcome! Please open an issue or submit a pull request with improvements or bug fixes.\n\n## References\n\n**[`^        back to top        ^`](#webhook-testing-with-cisco-catalyst-center-aka-dna-center)**\n\n- [Configure a Webhook Destination](https://www.cisco.com/c/en/us/td/docs/cloud-systems-management/network-automation-and-management/dna-center-platform/2-3-7/user-guide/b-dnac-platform-ug-2-3-7/b-dnac-platform-ug-2-3-7-chapter-0101.html#Cisco_Task_in_List_GUI.dita_e24b1b78-ea6e-4aa5-932a-359e04d4122f)\n- [Work with Event Notifications](https://www.cisco.com/c/en/us/td/docs/cloud-systems-management/network-automation-and-management/dna-center-platform/2-3-7/user-guide/b-dnac-platform-ug-2-3-7/b-dnac-platform-ug-2-3-7-chapter-0111.html#Cisco_Task_in_List_GUI.dita_ca236611-5a22-4c83-9a65-22d98a28b98e)\n- [Get Webhook'd - How to Build your Cisco DNA Center Integration](https://dcl3wxcscqm28.cloudfront.net/8130338649073540/4521856223995780/TECH%2041%20GetWebhooked.pdf)\n- [WebSockets and Webhooks - Embed network intelligence into your applications](https://www.ciscolive.com/c/dam/r/ciscolive/emea/docs/2024/pdf/DEVNET-1841.pdf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftes3awy%2Fcisco-catalyst-center-webhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftes3awy%2Fcisco-catalyst-center-webhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftes3awy%2Fcisco-catalyst-center-webhooks/lists"}