]> git.proxmox.com Git - mirror_frr.git/blame - debian/tests/py-frr-reload
Merge pull request #5452 from mjstapp/fix_notify_nhg
[mirror_frr.git] / debian / tests / py-frr-reload
CommitLineData
aaabb66e
DL
1#!/bin/sh
2set -e
3
4# should have been started on install, but policy may have inhibited that
5service frr restart
6
7# these should be running by default
82ab1fc5
DL
8pgrep watchfrr
9pgrep zebra
10pgrep staticd
aaabb66e
DL
11
12# configure interactively, save to file
13vtysh -c 'configure terminal' -c 'ip route 198.51.100.0/28 127.0.0.1'
14vtysh -c 'show running-config' | grep -q 'ip route 198.51.100.0/28 127.0.0.1'
15vtysh -c 'write memory'
16
17grep -q 'ip route 198.51.100.0/28 127.0.0.1' /etc/frr/frr.conf
18
19# configure in file, check interactively
20sed -e '/^ip route 198.51.100.0\/28 127.0.0.1/ c ip route 198.51.100.64/28 127.0.0.1' \
21 -i /etc/frr/frr.conf
22
23service frr reload
24
25vtysh -c 'show running-config' | grep -q 'ip route 198.51.100.64/28 127.0.0.1'
26if vtysh -c 'show running-config' | grep -q 'ip route 198.51.100.0/28 127.0.0.1'; then
27 exit 1
28fi