This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Start vyos-build container | |
# ./start_vyos_build_container.py [1.4|1.5] | |
# | |
# Viacheslav Hletenko 2025 | |
# | |
import sys | |
import subprocess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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.""" |