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 / gist:d2b9f99a2fcfeeb7752d9fe187fbff86
Last active July 6, 2021 14:54
Always-ON SR Linux private key
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
NhAAAAAwEAAQAAAYEA1BQO2Mi1gavtp+ghIyN+vm7yh/2mFt0aNiuwDP3ThB1IN6LLPVxV
nwGDQMw8+8UVYxZZlmdDibk85ECh8uEFQLT7gvw4ZkOxlTuHN0ET7Td2NBi+1HhihOPN3+
M/T1IxZs4gJ9Nh8CeCz/5XgUkao4Kg4LCn+yV51Yie7B1xFg9PCm1gsbNa/9+vtXOyoCpk
kzhnT8nLYRucIF36pOb80iEyBhQJfPFjpat4EkhssQy1U77xXcHui+9uN1DTTcAs056Yb/
GpQNhdvy/AwBRxvaZPR1fjXkRwEZZgE0DNUWriBM26yBCs0UGhBr2VrBCVtDPOEOfAmavF
b4grfMRRvaigPMWXtnFUc8M8fn8fUFiYxZwvNi7/0tbjeGZpx2FDPcLzGHCSf0mj5vApwk
HASsf3cxazjXlG8pB+AN5JbjhwWBa/kFKuZO2w2DmvCrv8Um4UOQ2M48c+PnIFvyOJRw87
9GhJL1WFgPXHccCBDbZpfKaPT8uF5uZz4R31nvlhAAAFiOqV2sDqldrAAAAAB3NzaC1yc2
@hellt
hellt / docker-centos-install.sh
Last active March 5, 2021 13:01
docker installation on centos
#!/bin/bash
set -e
sudo yum -y remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
@hellt
hellt / config.yaml
Created January 25, 2021 20:13
goreleaser issue
project_name: containerlab
release:
github:
owner: srl-wim
name: container-lab
name_template: '{{.Tag}}'
milestones:
- repo:
owner: srl-wim
name: container-lab
❯ make
../makefile-install.include:32: warning: overriding recipe for target `docker-pre-build'
../makefile.include:18: warning: ignoring old recipe for target `docker-pre-build'
Makefile:22: warning: overriding recipe for target `docker-build-image-copy'
../makefile.include:21: warning: ignoring old recipe for target `docker-build-image-copy'
for IMAGE in vmx-bundle-20.2R1.10.tgz; do \
echo "Making $IMAGE"; \
make IMAGE=$IMAGE docker-build; \
done
Making vmx-bundle-20.2R1.10.tgz
@hellt
hellt / demo.sh
Created January 13, 2021 10:30
crpd
[edit]
root@crpd# show
## Last changed: 2021-01-13 10:28:09 UTC
version 20200609.165031.6_builder.r1115480;
system {
root-authentication {
encrypted-password "$6$lB5c6$Zeud8c6IhCTE6hnZxXBl3ZMZTC2hOx9pxxYUWTHKW1oC32SATWLMH2EXarxWS5k685qMggUfFur1lq.o4p4cg1"; ## SECRET-DATA
}
}
interfaces {
@hellt
hellt / get.sh
Created January 12, 2021 20:48
get latest version from github releases
curl -L -I -s -o /dev/null -w %{url_effective} https://github.com/openfaas/faas/releases/latest | cut -d "/" -f 8
0.20.4
Jan 11 16:41:18.932376 Received OSPF packet of type and wire_length 1, 60
Jan 11 16:41:18.932378 OSPF rcvd Hello 192.168.0.2 -> 224.0.0.5 (eth1 IFL 5770 area 0.0.0.0)
Jan 11 16:41:18.932382 Version 2, length 48, ID 2.2.2.2, area 0.0.0.0
Jan 11 16:41:18.932392 checksum 0x0, authtype 0
Jan 11 16:41:18.932394 mask 255.255.255.0, hello_ivl 10, opts 0x12, prio 128
Jan 11 16:41:18.932400 dead_ivl 40, DR 0.0.0.0, BDR 0.0.0.0
Jan 11 16:41:18.932401 neighbor 1.1.1.1
Jan 11 16:41:18.932405 OSPF restart signaling: Received hello with LLS data from nbr ip=192.168.0.2 id=2.2.2.2.
Jan 11 16:41:18.932408 OSPF packet ignored: our router ID received from 192.168.0.2 on intf eth1 area 0.0.0.0
Jan 11 16:41:27.641822 task_process_events_internal: recv ready for OSPF I/O./var/run/ppmd_control
@hellt
hellt / tkng_prereq_ubuntu20.4.sh
Created December 24, 2020 20:49
tkng lab bootstrap script
#!/bin/bash
#####
#
# This bash script installs latest docker-ce, kubectl and helm software on Ubuntu 20.4 Linux AMD64
#
#####
TMP_DIR="$(mktemp -d)"
########################
@hellt
hellt / cisco.md
Last active October 22, 2020 14:21
gnmic and Cisco IOS-XR

Starting the lab

Start Model Driven Telemetry Lab.

Installing gNMIc

Login into the devbox VM inside this lab and clone the gnmic-bin repo to have the gnmic binary available inside the lab:

git clone https://github.com/hellt/gnmic-bin.git
mv gnmic-bin/gnmic ~/gnmic
@hellt
hellt / readme.md
Last active August 31, 2020 11:44
IOS-XR gNMI issue in MDT sandbox

IOS-XR gNMI list filtering issue in the devnetsandbox MDT lab

As of August 2020 The Model-Driven telemetry lab ships with IOS-XR 6.5.3

This XR version has some issue with the gNMI server that prevents it from accepting YANG list keys without extra quotes around key names.

Problem statement

If one would want to get the interfaces information using the openconfig models they would do this like:

gnmic -a 10.10.20.35:57400 -u admin -p Cisco123 --insecure -e JSON_IETF get --path "openconfig-interfaces:interfaces/interface"