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 / srl23-7-1.json
Created September 4, 2023 07:14
SR Linux configuration as set by containerlab on boot
{
"_preamble": {
"header": {
"generated-by": "SRLINUX",
"name": "",
"comment": "",
"created": "2023-09-04T07:13:09.479Z",
"release": "v23.7.1",
"enabled-yang-features": ["srl_nokia-features:acl-policer-resource-utilization", "srl_nokia-features:admin-user-roles", "srl_nokia-features:anycast-gw", "srl_nokia-features:arp-nd-datapath-programming", "srl_nokia-features:bgp-add-paths", "srl_nokia-features:bgp-auth-password", "srl_nokia-features:bgp-cfg-afi-safi-list", "srl_nokia-features:bgp-graceful-restart-gaps", "srl_nokia-features:bgp-ipv6-next-hop-tunnel-resolution", "srl_nokia-features:bgp-local-as-container-iso-list", "srl_nokia-features:bgp-max-ecmp-hash-buckets", "srl_nokia-features:bgp-mtu-discovery", "srl_nokia-features:bgp-prefix-limit", "srl_nokia-features:bgp-restart-max-wait", "srl_nokia-features:bgp-rib-afi-safi-list", "srl_nokia-features:bgp-rib-afi-safi-route", "srl_nokia-features:bgp-single-hop-connected-check", "srl_nokia-features:bgp-unnumbered-peers",
@hellt
hellt / user.clab.yaml
Created January 14, 2026 16:09
user demo
name: srl
topology:
groups:
srl-new-user:
startup-config: |
set / system aaa authentication user student password student123 superuser true
nodes:
srl1:
kind: nokia_srlinux
image: ghcr.io/nokia/srlinux:25.10
@hellt
hellt / uvx.sh
Created March 4, 2026 13:33
uvx with git+https support
#!/bin/sh
set -eu
UV_INSTALL_DIR="${UV_INSTALL_DIR:-$HOME/.local/bin}"
if command -v uv >/dev/null 2>&1; then
UV_BIN="uv"
elif [ -x "$UV_INSTALL_DIR/uv" ]; then
UV_BIN="$UV_INSTALL_DIR/uv"
else
ZROK_VERSION=1.1.11
ZROK_TOKEN=${ZROK_TOKEN:=your_zrok_token}
set -euo pipefail
# relax domain name enforcement for zrok
BASE_NAMESPACE="$(kubectl get engineconfig -A -o jsonpath='{.items[0].metadata.namespace}')"
EC_NAME="$(kubectl get engineconfig -A -o jsonpath='{.items[0].metadata.name}')"
kubectl -n $BASE_NAMESPACE patch engineconfig $EC_NAME --type=json -p '[