{"id":21636107,"url":"https://github.com/bigevilbeard/sd_wan_demo","last_synced_at":"2025-04-11T15:50:19.938Z","repository":{"id":128722021,"uuid":"159357045","full_name":"bigevilbeard/sd_wan_demo","owner":"bigevilbeard","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-26T08:15:00.000Z","size":107,"stargazers_count":7,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T11:52:24.256Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bigevilbeard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2018-11-27T15:27:35.000Z","updated_at":"2022-09-16T13:40:53.000Z","dependencies_parsed_at":"2023-06-05T02:00:24.704Z","dependency_job_id":null,"html_url":"https://github.com/bigevilbeard/sd_wan_demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigevilbeard%2Fsd_wan_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigevilbeard%2Fsd_wan_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigevilbeard%2Fsd_wan_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigevilbeard%2Fsd_wan_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigevilbeard","download_url":"https://codeload.github.com/bigevilbeard/sd_wan_demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248434408,"owners_count":21102829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-25T03:29:54.186Z","updated_at":"2025-04-11T15:50:19.926Z","avatar_url":"https://github.com/bigevilbeard.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/bigevilbeard/sd_wan_demo)\n# SD-WAN Demo Code\n\nAll code has been tested on the Cisco DevNet Always On SD-WAN sandbox [HERE](https://devnetsandbox.cisco.com/RM/Diagram/Index/4fb544ad-c88c-4227-8b09-5d35aa26a63b?diagramType=Topology) and the Reservable SD-WAN sandbox [HERE](https://devnetsandbox.cisco.com/RM/Diagram/Index/8a5390bf-3017-4dc2-a77b-23b6cf8b2267?diagramType=Topology). Please see the sandbox pages for credentials and reservations. This demo example is based on Python 3.6 and was tested successfully under that version.\n\nThe Cisco SD-WAN software provides a REST API, which is a programmatic interface for controlling, configuring, and monitoring the Cisco SD-WAN devices in an overlay network. You access the REST API through the vManage web server. The API is documented on the vManage host and can be found by going to `https://{vmanage-ip-address/apidocs`. Additional API documentation can be found in the [Cisco SD-WAN Product Documentation](https://sdwan-docs.cisco.com/Product_Documentation/Command_Reference/vManage_REST_APIs).\n\n## The requirements\n\n```\npython3 -m venv venv\nsource venv/bin/activate\npython -V\nPython 3.6.5\n```\n```\npip install -r requirements\ngit clone https://github.com/bigevilbeard/sd_wan_demo\n```\n\n\n## Bulk API Operations\n\nRESTful bulk API calls allow you to issue a single RESTful API command to collect information about multiple vEdge routers in the overlay network. The information is returned in batches.\n\nYou can perform two types of bulk API operations:\n\n`State`— These operations return status information about the Cisco SD-WAN devices, such as the number and state of OMP and BFD sessions\n\n`Statistics` — These operations return statistics from the Cisco SD-WAN devices, such as the number of transmitted and received data packets\n\n\n## Returns All Inventory Data\n\nThis section of the code will retrieve the inventory data of the vMange and return summary data of all devices in the network. The data includes SystemIP, Hostname, Version of code, UUID and interfaces and statistics. The second part of the demo presents the detailed tunnel statistics on an individual vEdge.\n\n## Function Descriptions\nThese python scripts implement  basic functions that are described below:\n\n- `get_devices.py` - Collects all device information from the SD-WAN vManage\n-  `get_vpn.py` - - Collects all VPN information from the SD-WAN vManage\n\n## Output example\n\n![sdwan](./demo.gif)\n\n## About me\n\nNetwork Automation Developer Advocate for Cisco DevNet.\nI'm like Hugh Hefner... minus the mansion, the exotic cars, the girls, the magazine and the money. So basically, I have a robe.\n\nFind me here: [LinkedIn](https://www.linkedin.com/in/stuarteclark/) / [Twitter](https://twitter.com/bigevilbeard)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigevilbeard%2Fsd_wan_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigevilbeard%2Fsd_wan_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigevilbeard%2Fsd_wan_demo/lists"}