Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openconfig/lsdbparse
An IS-IS LSP to OpenConfig Schema Library
https://github.com/openconfig/lsdbparse
Last synced: about 2 months ago
JSON representation
An IS-IS LSP to OpenConfig Schema Library
- Host: GitHub
- URL: https://github.com/openconfig/lsdbparse
- Owner: openconfig
- License: apache-2.0
- Created: 2018-12-16T03:30:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-17T16:48:46.000Z (over 1 year ago)
- Last Synced: 2024-06-20T05:28:15.344Z (7 months ago)
- Language: Go
- Size: 1.42 MB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# lsdbparse
[![Build
Status](https://travis-ci.org/openconfig/lsdbparse.svg?branch=master)](https://travis-ci.org/openconfig/lsdbparse)
[![Coverage
Status](https://coveralls.io/repos/github/openconfig/lsdbparse/badge.svg?branch=master)](https://coveralls.io/github/openconfig/lsdbparse?branch=master)This library contains a Go implementation which can parse an IS-IS LSP and
output it as gNMI Notifications containing OpenConfig encoded data.Two public APIs are provided:
* `ISISBytesToLSP([]byte, int)`: takes an input byte array containing an IS-IS
PDU beginning at the LSP ID field, and returns a ygot.ValidatedGoStruct containing the
parsed LSP as per the OpenConfig schema, a bool indicating whether the LSP was
succesfully parsed, and an error.* `RenderNotifications(*oc.Lsp, ISISRenderArgs)`: takes an input GoStruct
corresponding to an IS-IS LSP, and returns a slice of gNMI notifications which
correspond to the contents of the LSP, which can be used in streaming telemetry
implementations.The generated code for the OpenConfig library uses a subset of the schema to
improve the efficiency for IS-IS LSP parsing operations.## Note well
This is not an official Google product.
## Contributing
We welcome code contributions to the lsdbparse library. Please sign the Google
CLA and see the CONTRIBUTING document for further details.