{"id":18722404,"url":"https://github.com/nleiva/xroc","last_synced_at":"2026-02-23T20:45:13.347Z","repository":{"id":87031047,"uuid":"101836793","full_name":"nleiva/xroc","owner":"nleiva","description":"A collection of OpenConfig and Cisco IOS XR examples","archived":false,"fork":false,"pushed_at":"2018-10-17T14:32:17.000Z","size":56256,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-14T11:47:17.058Z","etag":null,"topics":["bgp","grpc","ios-xr","network-automation","network-programming","openconfig","telemetry","xrgrpc","yang","ygot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nleiva.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}},"created_at":"2017-08-30T04:14:59.000Z","updated_at":"2024-12-20T11:30:25.000Z","dependencies_parsed_at":"2023-05-30T07:15:12.812Z","dependency_job_id":null,"html_url":"https://github.com/nleiva/xroc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nleiva/xroc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nleiva%2Fxroc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nleiva%2Fxroc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nleiva%2Fxroc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nleiva%2Fxroc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nleiva","download_url":"https://codeload.github.com/nleiva/xroc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nleiva%2Fxroc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29754780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T20:43:23.829Z","status":"ssl_error","status_checked_at":"2026-02-23T20:43:23.422Z","response_time":90,"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":["bgp","grpc","ios-xr","network-automation","network-programming","openconfig","telemetry","xrgrpc","yang","ygot"],"created_at":"2024-11-07T13:41:19.344Z","updated_at":"2026-02-23T20:45:13.325Z","avatar_url":"https://github.com/nleiva.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A collection of OpenConfig and Cisco IOS XR examples\n\n[![BSD License](https://img.shields.io/pypi/l/Django.svg)](LICENSE)\n[![published](https://static.production.devnetcloud.com/codeexchange/assets/images/devnet-published.svg)](https://developer.cisco.com/codeexchange/github/repo/nleiva/xroc)\n\nThe goal of this repo is to provide a set of examples that illustrate how to program network elements using [OpenConfig](http://www.openconfig.net/) and [gRPC](https://grpc.io/). We will leverage different Open Source projects:\n\n- [Go](https://github.com/golang/go) as the main programming language.\n- [xrgrpc](https://nleiva.github.io/xrgrpc/) (gRPC library for Cisco IOS XR) to interact with IOS XR via [gRPC](https://grpc.io/).\n- [ygot](https://github.com/openconfig/ygot) (**Y**ANG **Go** **T**ools) to generate the [OpenConfig](http://www.openconfig.net/) data structures required for the gRPC calls.\n\n## Examples\n\n### Interface Configuration\n\n- [OpenConfig interface](example/ipv6/interface/README.md)\n\n### Telemetry Stream Configuration\n\n- [OpenConfig telemetry](example/ipv6/telemetry/README.md)\n\n### BGP Neighbor Configuration\n\n- [OpenConfig Network Instance: BGP](example/ipv6/bgp/README.md)\n\n### Configuring and Validating a BGP Peer session\n\nThe objective is to configure an interface (link) and bring up a BGP session, while setting up a BGP Neighbor Telemetry stream to track the current state of the BGP Finite State Machine. Check out the code [here](example/ipv6/closeloop/main.go)\n\n#### Steps\n\n1. Configure a Streaming Telemetry subscription using [ygot](https://github.com/openconfig/ygot) and [xrgrpc](https://nleiva.github.io/xrgrpc/).\n\n2. Configure the Peer link (interface) using [ygot](https://github.com/openconfig/ygot) and [xrgrpc](https://nleiva.github.io/xrgrpc/).\n\n3. Configure a BGP neighbor using [ygot](https://github.com/openconfig/ygot) and [xrgrpc](https://nleiva.github.io/xrgrpc/).\n\n4. Subscribe to a Telemetry stream to learn about BGP Neighbor status with [xrgrpc](https://nleiva.github.io/xrgrpc/).\n\n   ![oc-config-validate](static/images/closeloop.svg)\n\n## Tutorials\n\n- [Programming IOS-XR with gRPC and Go](https://xrdocs.github.io/programmability/tutorials/2017-08-04-programming-ios-xr-with-grpc-and-go/).\n- [Validate the intent of network config changes](https://xrdocs.github.io/programmability/tutorials/2017-08-14-validate-the-intent-of-network-config-changes/).\n- [Programming Network Devices with gRPC and OpenConfig](https://goo.gl/dMZxd2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnleiva%2Fxroc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnleiva%2Fxroc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnleiva%2Fxroc/lists"}