mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-06 15:00:18 +00:00
topotests: test new log toggle
Test MSDP new log toggle: the MSDP peer connection state and SA events should be logged. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
parent
fc39bfaa0a
commit
0b0648f15c
@ -22,5 +22,7 @@ ip pim rp 10.254.254.1
|
|||||||
ip pim join-prune-interval 5
|
ip pim join-prune-interval 5
|
||||||
!
|
!
|
||||||
router pim
|
router pim
|
||||||
|
msdp log neighbor-events
|
||||||
|
msdp log sa-events
|
||||||
msdp peer 192.168.0.2 password 1234
|
msdp peer 192.168.0.2 password 1234
|
||||||
!
|
!
|
||||||
|
@ -17,6 +17,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
import re
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
# Save the Current Working Directory to find configuration files.
|
# Save the Current Working Directory to find configuration files.
|
||||||
@ -510,6 +511,25 @@ def test_msdp_sa_filter():
|
|||||||
assert val is None, "multicast route convergence failure"
|
assert val is None, "multicast route convergence failure"
|
||||||
|
|
||||||
|
|
||||||
|
def test_msdp_log_events():
|
||||||
|
"Test that the enabled logs are working as expected."
|
||||||
|
|
||||||
|
tgen = get_topogen()
|
||||||
|
if tgen.routers_have_failure():
|
||||||
|
pytest.skip(tgen.errors)
|
||||||
|
|
||||||
|
r1_log = tgen.gears["r1"].net.getLog("log", "pimd")
|
||||||
|
|
||||||
|
# Look up for informational messages that should have been enabled.
|
||||||
|
match = re.search(
|
||||||
|
"MSDP peer 192.168.1.2 state changed to established", r1_log)
|
||||||
|
assert match is not None
|
||||||
|
|
||||||
|
match = re.search(
|
||||||
|
r"MSDP SA \(192.168.10.100\,229.1.2.3\) created", r1_log)
|
||||||
|
assert match is not None
|
||||||
|
|
||||||
|
|
||||||
def test_memory_leak():
|
def test_memory_leak():
|
||||||
"Run the memory leak test and report results."
|
"Run the memory leak test and report results."
|
||||||
tgen = get_topogen()
|
tgen = get_topogen()
|
||||||
|
Loading…
Reference in New Issue
Block a user