mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 23:38:55 +00:00

Ditch the old non-working one and add 3 new ones to check: - that zebra can talk to the kernel at least somewhat - that SNMP and RPKI modules can be loaded - that frr-reload.py works This should catch most build environment SNAFUs. Signed-off-by: David Lamparter <equinox@diac24.net>
29 lines
833 B
Bash
Executable File
29 lines
833 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# should have been started on install, but policy may have inhibited that
|
|
service frr restart
|
|
|
|
# these should be running by default
|
|
killall -0 watchfrr
|
|
killall -0 zebra
|
|
killall -0 staticd
|
|
|
|
# configure interactively, save to file
|
|
vtysh -c 'configure terminal' -c 'ip route 198.51.100.0/28 127.0.0.1'
|
|
vtysh -c 'show running-config' | grep -q 'ip route 198.51.100.0/28 127.0.0.1'
|
|
vtysh -c 'write memory'
|
|
|
|
grep -q 'ip route 198.51.100.0/28 127.0.0.1' /etc/frr/frr.conf
|
|
|
|
# configure in file, check interactively
|
|
sed -e '/^ip route 198.51.100.0\/28 127.0.0.1/ c ip route 198.51.100.64/28 127.0.0.1' \
|
|
-i /etc/frr/frr.conf
|
|
|
|
service frr reload
|
|
|
|
vtysh -c 'show running-config' | grep -q 'ip route 198.51.100.64/28 127.0.0.1'
|
|
if vtysh -c 'show running-config' | grep -q 'ip route 198.51.100.0/28 127.0.0.1'; then
|
|
exit 1
|
|
fi
|