Skip to content

Instantly share code, notes, and snippets.

View hellt's full-sized avatar
🦍
grinding

Roman Dodin hellt

🦍
grinding
View GitHub Profile
@hellt
hellt / arista.all.json
Created July 26, 2020 07:43
a full dump of vEOS 4.24.1.1F config/state retrieved with gNMI
{
"source": "10.2.0.21:6030",
"time": "1970-01-01T02:00:00+02:00",
"updates": [
{
"Path": "",
"values": {
"": {
"arista-exp-eos:arista": {
"eos": {
@hellt
hellt / sros.md
Last active March 5, 2021 14:03
sros bootstrap

Documentation

SR OS documentation can be fetched from this handy site: https://bit.ly/iondoc Open the 7750 section and choose the needed version.

Documents which require login are marked with "key" icon. The rest can be opened by anyone.

vSIM installation guide provides the details on how to launch virtualized SR OS and its configuration options.

Create disk images

To save on disk space the guide uses libvirt backing store technique, which allows a user to use a common disk image for every guest and each gues will have its own disk image with deltas only.

❯ ~/go/bin/errcheck ./...
cmd/capabilities.go:50:20: go reqCapability(ctx, target, wg, lock)
cmd/capabilities.go:111:17: viper.BindPFlag("version", capabilitiesCmd.Flags().Lookup("version"))
cmd/get.go:146:25: getCmd.MarkFlagRequired("path")
cmd/get.go:150:17: viper.BindPFlag("get-path", getCmd.Flags().Lookup("path"))
cmd/get.go:151:17: viper.BindPFlag("get-prefix", getCmd.Flags().Lookup("prefix"))
cmd/get.go:152:17: viper.BindPFlag("get-model", getCmd.Flags().Lookup("model"))
cmd/get.go:153:17: viper.BindPFlag("get-type", getCmd.Flags().Lookup("type"))
cmd/listen.go:79:26: server.grpcServer.Serve(server.listener)
cmd/listen.go:90:17: viper.BindPFlag("max-concurrent-streams", listenCmd.Flags().Lookup("max-concurrent-streams"))
@hellt
hellt / R3_rr_baseline.cfg
Created June 17, 2020 10:06
R3 Nokia router reflector baseline config
# TiMOS-B-14.0.R4 both/i386 Nokia 7750 SR Copyright (c) 2000-2016 Nokia.
# All rights reserved. All use subject to applicable license agreements.
# Built on Thu Jul 28 17:26:53 PDT 2016 by builder in /rel14.0/b1/R4/panos/main
# Generated SUN MAR 13 06:29:22 2016 UTC
exit all
configure
#--------------------------------------------------
echo "System Configuration"
@hellt
hellt / R2_baseline.cfg
Created June 17, 2020 10:05
R2 Juniper baseline config
## Last changed: 2016-11-06 18:41:14 UTC
version 14.1R1.10;
system {
host-name R2;
root-authentication {
encrypted-password "****"; ## SECRET-DATA
}
syslog {
user * {
any emergency;
@hellt
hellt / R1_nokia.cfg
Created June 17, 2020 10:04
R1 Nokia baseline config
# TiMOS-B-14.0.R4 both/i386 Nokia 7750 SR Copyright (c) 2000-2016 Nokia.
# All rights reserved. All use subject to applicable license agreements.
# Built on Thu Jul 28 17:26:53 PDT 2016 by builder in /rel14.0/b1/R4/panos/main
# Generated SUN MAR 13 06:28:52 2016 UTC
exit all
configure
#--------------------------------------------------
echo "System Configuration"
@hellt
hellt / yang.txt
Created May 18, 2020 07:20
yang tree example
| | | +--rw ipv4
| | | | +--rw multicast? boolean
| | | | +--rw apply-groups* -> ../../../../../groups/group/name
| | | | +--rw monitor-oper-group
| | | | +--rw name? -> ../../../../../../service/oper-group/name
| | | | +--rw operation? enumeration
| | | | +--rw priority-delta? uint32
| | | +--rw ipv6
| | | | +--rw multicast? boolean
| | | | +--rw apply-groups* -> ../../../../../groups/group/name
<configure xmlns="urn:nokia.com:sros:ns:yang:sr:conf">
<card>
<slot-number>1</slot-number>
<mda>
<mda-slot>1</mda-slot>
<mda-type>s36-100gb-qsfp28</mda-type>
</mda>
<fp>
<fp-number>1</fp-number>
</fp>
{
"response": {
"data": {
"network": {
"UUID_1": {
"key1": "val1",
"key2":{
"UUID_3": {
"key3": "val3"
}
@hellt
hellt / nsp-curl.sh
Last active January 19, 2026 21:06
nsp-curl
while [ $# -gt 0 ]; do
case "$1" in
# IP address or the domain name of the NSP server (without http(s) schema)
--nsp_url=*)
NSP_URL="${1#*=}"
;;
# http proxy which will be used by curl if set
--proxy=*)
HTTP_PROXY="${1#*=}"
;;