aristanetworks / openmgmt Goto Github PK
View Code? Open in Web Editor NEWDocumentation and examples for using open network management tools such as OpenConfig
Home Page: https://aristanetworks.github.io/openmgmt/
License: Apache License 2.0
Documentation and examples for using open network management tools such as OpenConfig
Home Page: https://aristanetworks.github.io/openmgmt/
License: Apache License 2.0
some are missing: RESTCONF, Ansible ...
could you please add some topics to the current list (top right of repo homepage). we dont have permissions :-)
I suggest you add to the current list these ones: ygot, netconf, restconf, grpcurl, pyang, telemetry, streaming, pygnmi, eos, gnmic, gnoi, go .... The limit is 20.
document the use and application for the google collector
e.g.:
curl -s GET --insecure --header 'Accept: application/yang-data+json' -u cvpadmin:arastra 'https://192.0.2.100:5900/restconf/data/network-instances/network-instance=default/protocols/protocol=BGP,BGP/bgp/neighbors' | jq
Automate the build and deploy
~/openmgmt/src/ygot$ go run $GOPATH/src/github.com/openconfig/ygot/generator/generator.go -path=yang -output_file=pkg/oc.go -package_name=oc -generate_fakeroot -fakeroot_name=device -compress_paths=true yang/openconfig-system.yang
stat /src/github.com/openconfig/ygot/generator/generator.go: no such file or directory
I dont have ygot:
~/openmgmt/src/ygot$ ls $GOPATH/src/github.com/openconfig/
gnmi gnoi
I had to add this
git clone https://github.com/openconfig/ygot.git $GOPATH/src/github.com/openconfig/ygot
to fix it
@burnyd should we update the example with this instruction?
Add a bunch of tags for the repo
Can you pull over some of your labs from TF here?
Keep code and text separate
Add example to get/subscribe lanz streaming data from switch using gNMI.
gnmic -a <switch>:6030 -u arista -p arista --insecure --gzip --mode=stream subscribe --path 'eos_native:/LANZ'
we currently provided examples only for set, get and sub
deleting stale branches with CI and maybe using another contribution workflow
Add parsing of ygot for a few examples related to adding system information, bgp hostname etc.
Make repo notifications show up on the chat
See AuthorizedPrincipalsCommand
Add gNOI examples in go.
Eg
1)
gnmic -a 10.83.13.214:6030 -u cvpadmin -p arista --insecure --gzip set --request-file bgp.yaml
{
"timestamp": 1628091791855672771,
"time": "2021-08-04T16:43:11.855672771+01:00",
"results": [
{
"operation": "UPDATE",
"path": "cli:"
},
{
"operation": "UPDATE",
"path": "cli:"
}
]
}
cat bgp.yaml
updates:
- path: "cli:"
value: router bgp 65101
encoding: ascii
- path: "cli:"
value: neighbor IPv4-UNDERLAY-PEERS maximum-routes 15500
encoding: ascii
gnmic -a 10.83.13.214:6030 -u cvpadmin -p arista --insecure --gzip --encoding ASCII set --update-path "cli:" --update-value "router bgp 65101" --update-path "cli:" --upda
te-value "neighbor IPv4-UNDERLAY-PEERS maximum-routes 13500"
{
"timestamp": 1628091405938523430,
"time": "2021-08-04T16:36:45.93852343+01:00",
"results": [
{
"operation": "UPDATE",
"path": "cli:"
},
{
"operation": "UPDATE",
"path": "cli:"
}
]
}
gnmi -addr 10.83.13.214:6030 -username cvpadmin -password arista update origin=cli "" "router bgp 65101
neighbor IPv4-UNDERLAY-PEERS maximum-routes 12500"
provide an example of using gnmi-gw
The attached diff, addresses it.
add a badge or several badges for status of CI/lint/mkdocs GitHub Pages deployment/...
For telemetry applications
Maybe just use the openconfig icon or something?
https://www.openconfig.net/img/oc-logo-accent.svg
there's widespread use of 1918 address ranges within the documentation. these should be replaced with the IP address ranges allocated for documentation.
IPv6 range:
IPv4 ranges:
system/cpus is available in EOS-4.27.2F+
much of the example code in the repo uses hardcoded values. while useful in demonstrating the concepts, it does make it a bit more challenging to use these examples quickly or to build off them for tools, etc.
it would be useful to replace the hardcoded options with relevant command-line arguments and flags.
newer EOS versions will support notification timestamp <send-time | no>
to change the timestamp in a gNMI response from the time it was last changed to the time the notification is sent
some examples don't seem to work anymore like for instance the bgp example https://aristanetworks.github.io/openmgmt/examples/pyangbind/ requires also openconfig-network-instances.yang
in addition to openconfig-bgp.yang
for the demo to work
so we see the topics from the README file (+ clickable links)
We can spice up the footer with some useful links.
update the list (some are missing: ygot, ansible ...)
https://github.com/aristanetworks/openmgmt/blob/main/docs/examples/index.md
https://aristanetworks.github.io/openmgmt/examples/
update the README file (moving contributions details in an external contribution guide)
we should probably have some sort of automated check for IP addresses that aren't in the documentation range.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.