Skip to content

Instantly share code, notes, and snippets.

View sever-sever's full-sized avatar

Viacheslav Hletenko sever-sever

View GitHub Profile
@sever-sever
sever-sever / start_vyos_build_container.py
Created July 3, 2025 08:54
Start vyos-build container with different versions as arg
#!/usr/bin/env python3
#
# Start vyos-build container
# ./start_vyos_build_container.py [1.4|1.5]
#
# Viacheslav Hletenko 2025
#
import sys
import subprocess
@sever-sever
sever-sever / snmp_mibs_downloader.sh
Last active May 7, 2025 11:38
Download SNMP MIBS
#!/urs/bin/env bash
# usage:
# sudo bash snmp_mibs_downloader.sh
#
# Viacheslav Hletenko 2025
# Enable snmp for VyOS BGP (requires reboot the router):
# set service snmp community public client '127.0.0.1'
# set system frr snmp bgpd
@sever-sever
sever-sever / allow_vpp_coredump.sh
Created March 10, 2025 14:07
Add required packages and configs for debugging VPP
#!/usr/bin/env bash
# Define the core dump directory as a variable
COREDUMP_DIR="/config/coredump"
VPP_CONF_TEMPLATE="/usr/share/vyos/templates/vpp/startup.conf.j2"
# Function to install gdb if not installed
install_gdb() {
if ! command -v gdb &> /dev/null; then
echo "gdb is not installed. Adding bookworm repository and installing..."
@sever-sever
sever-sever / proc_sys.py
Created February 28, 2025 17:24
Recursively read /proc/sys and store contents as a dictionary. Ability to compare 2 files
#!/usr/bin/env python3
import os
import json
import sys
PROC_SYS_PATH = "/proc/sys"
def read_proc_sys():
"""Recursively read /proc/sys and store contents as a dictionary."""