Commit 4760a3a3 authored by Matous Holinka's avatar Matous Holinka
Browse files

mh-ospf-single-area: test case :cf-ospf: was updated (Files :tests/kernel.py:...

mh-ospf-single-area: test case :cf-ospf: was updated (Files :tests/kernel.py: + :cf-ospf/test-cf-ospf: were modified)
parent 8367465c
cf-ospf
\ No newline at end of file
192.168.1.0/24 dev ve0 proto kernel scope link src 192.168.1.1
192.168.1.0/24 dev ve0 proto bird scope link metric 32
192.168.2.0/24 via 192.168.11.2 dev ve1 proto bird metric 32
192.168.3.0/24 proto bird metric 32
nexthop via 192.168.11.2 dev ve1 weight 1
nexthop via 192.168.14.1 dev ve2 weight 1
192.168.4.0/24 via 192.168.14.1 dev ve2 proto bird metric 32
192.168.11.0/24 dev ve1 proto kernel scope link src 192.168.11.1
192.168.11.0/24 dev ve1 proto bird scope link metric 32
192.168.12.0/24 via 192.168.11.2 dev ve1 proto bird metric 32
192.168.13.0/24 via 192.168.14.1 dev ve2 proto bird metric 32
192.168.14.0/24 dev ve2 proto kernel scope link src 192.168.14.2
192.168.14.0/24 dev ve2 proto bird scope link metric 32
192.168.120.0/24 via 192.168.14.1 dev ve2 proto bird metric 32
10.0.1.0/24 dev ve1 proto kernel scope link src 10.0.1.1
10.0.1.0/24 dev ve1 proto bird scope link metric 32
10.0.2.0/24 via 10.0.1.2 dev ve1 proto bird metric 32
10.0.3.0/24 via 10.0.4.1 dev ve2 proto bird metric 32
10.0.4.0/24 dev ve2 proto kernel scope link src 10.0.4.2
10.0.4.0/24 dev ve2 proto bird scope link metric 32
10.1.1.0/24 dev ve0 proto kernel scope link src 10.1.1.1
10.1.1.0/24 dev ve0 proto bird scope link metric 32
10.2.1.0/24 via 10.0.1.2 dev ve1 proto bird metric 32
10.3.1.0/24 proto bird metric 32
nexthop via 10.0.1.2 dev ve1 weight 1
nexthop via 10.0.4.1 dev ve2 weight 1
10.4.1.0/24 via 10.0.4.1 dev ve2 proto bird metric 32
192.168.120.0/24 via 10.0.4.1 dev ve2 proto bird metric 32
192.168.220.0 proto bird metric 32
nexthop via 192.168.11.2 dev ve1 weight 1
nexthop via 192.168.14.1 dev ve2 weight 1
nexthop via 10.0.1.2 dev ve1 weight 1
nexthop via 10.0.4.1 dev ve2 weight 1
\ No newline at end of file
192.168.1.0/24 via 192.168.11.1 dev ve2 proto bird metric 32
192.168.2.0/24 dev ve0 proto kernel scope link src 192.168.2.1
192.168.2.0/24 dev ve0 proto bird scope link metric 32
192.168.3.0/24 via 192.168.12.2 dev ve1 proto bird metric 32
192.168.4.0/24 proto bird metric 32
nexthop via 192.168.11.1 dev ve2 weight 1
nexthop via 192.168.12.2 dev ve1 weight 1
192.168.11.0/24 dev ve2 proto kernel scope link src 192.168.11.2
192.168.11.0/24 dev ve2 proto bird scope link metric 32
192.168.12.0/24 dev ve1 proto kernel scope link src 192.168.12.1
192.168.12.0/24 dev ve1 proto bird scope link metric 32
192.168.13.0/24 via 192.168.12.2 dev ve1 proto bird metric 32
192.168.14.0/24 via 192.168.11.1 dev ve2 proto bird metric 32
10.0.1.0/24 dev ve2 proto kernel scope link src 10.0.1.2
10.0.1.0/24 dev ve2 proto bird scope link metric 32
10.0.2.0/24 dev ve1 proto kernel scope link src 10.0.2.1
10.0.2.0/24 dev ve1 proto bird scope link metric 32
10.0.3.0/24 via 10.0.2.2 dev ve1 proto bird metric 32
10.0.4.0/24 via 10.0.1.1 dev ve2 proto bird metric 32
10.1.1.0/24 via 10.0.1.1 dev ve2 proto bird metric 32
10.2.1.0/24 dev ve0 proto kernel scope link src 10.2.1.1
10.2.1.0/24 dev ve0 proto bird scope link metric 32
10.3.1.0/24 via 10.0.2.2 dev ve1 proto bird metric 32
10.4.1.0/24 proto bird metric 32
nexthop via 10.0.1.1 dev ve2 weight 1
nexthop via 10.0.2.2 dev ve1 weight 1
192.168.120.0/24 proto bird metric 32
nexthop via 192.168.11.1 dev ve2 weight 1
nexthop via 192.168.12.2 dev ve1 weight 1
192.168.220.0 via 192.168.12.2 dev ve1 proto bird metric 32
nexthop via 10.0.1.1 dev ve2 weight 1
nexthop via 10.0.2.2 dev ve1 weight 1
192.168.220.0 via 10.0.2.2 dev ve1 proto bird metric 32
\ No newline at end of file
192.168.1.0/24 proto bird metric 32
nexthop via 192.168.12.1 dev ve2 weight 1
nexthop via 192.168.13.2 dev ve1 weight 1
192.168.2.0/24 via 192.168.12.1 dev ve2 proto bird metric 32
192.168.3.0/24 dev ve0 proto kernel scope link src 192.168.3.1
192.168.3.0/24 dev ve0 proto bird scope link metric 32
192.168.4.0/24 via 192.168.13.2 dev ve1 proto bird metric 32
192.168.11.0/24 via 192.168.12.1 dev ve2 proto bird metric 32
192.168.12.0/24 dev ve2 proto kernel scope link src 192.168.12.2
192.168.12.0/24 dev ve2 proto bird scope link metric 32
192.168.13.0/24 dev ve1 proto kernel scope link src 192.168.13.1
192.168.13.0/24 dev ve1 proto bird scope link metric 32
192.168.14.0/24 via 192.168.13.2 dev ve1 proto bird metric 32
192.168.120.0/24 via 192.168.13.2 dev ve1 proto bird metric 32
10.0.1.0/24 via 10.0.2.1 dev ve2 proto bird metric 32
10.0.2.0/24 dev ve2 proto kernel scope link src 10.0.2.2
10.0.2.0/24 dev ve2 proto bird scope link metric 32
10.0.3.0/24 dev ve1 proto kernel scope link src 10.0.3.1
10.0.3.0/24 dev ve1 proto bird scope link metric 32
10.0.4.0/24 via 10.0.3.2 dev ve1 proto bird metric 32
10.1.1.0/24 proto bird metric 32
nexthop via 10.0.2.1 dev ve2 weight 1
nexthop via 10.0.3.2 dev ve1 weight 1
10.2.1.0/24 via 10.0.2.1 dev ve2 proto bird metric 32
10.3.1.0/24 dev ve0 proto kernel scope link src 10.3.1.1
10.3.1.0/24 dev ve0 proto bird scope link metric 32
10.4.1.0/24 via 10.0.3.2 dev ve1 proto bird metric 32
192.168.120.0/24 via 10.0.3.2 dev ve1 proto bird metric 32
\ No newline at end of file
192.168.1.0/24 via 192.168.14.2 dev ve1 proto bird metric 32
192.168.2.0/24 proto bird metric 32
nexthop via 192.168.13.1 dev ve2 weight 1
nexthop via 192.168.14.2 dev ve1 weight 1
192.168.3.0/24 via 192.168.13.1 dev ve2 proto bird metric 32
192.168.4.0/24 dev ve0 proto kernel scope link src 192.168.4.1
192.168.4.0/24 dev ve0 proto bird scope link metric 32
192.168.11.0/24 via 192.168.14.2 dev ve1 proto bird metric 32
192.168.12.0/24 via 192.168.13.1 dev ve2 proto bird metric 32
192.168.13.0/24 dev ve2 proto kernel scope link src 192.168.13.2
192.168.13.0/24 dev ve2 proto bird scope link metric 32
192.168.14.0/24 dev ve1 proto kernel scope link src 192.168.14.1
192.168.14.0/24 dev ve1 proto bird scope link metric 32
192.168.220.0 via 192.168.13.1 dev ve2 proto bird metric 32
10.0.1.0/24 via 10.0.4.2 dev ve1 proto bird metric 32
10.0.2.0/24 via 10.0.3.1 dev ve2 proto bird metric 32
10.0.3.0/24 dev ve2 proto kernel scope link src 10.0.3.2
10.0.3.0/24 dev ve2 proto bird scope link metric 32
10.0.4.0/24 dev ve1 proto kernel scope link src 10.0.4.1
10.0.4.0/24 dev ve1 proto bird scope link metric 32
10.1.1.0/24 via 10.0.4.2 dev ve1 proto bird metric 32
10.2.1.0/24 proto bird metric 32
nexthop via 10.0.3.1 dev ve2 weight 1
nexthop via 10.0.4.2 dev ve1 weight 1
10.3.1.0/24 via 10.0.3.1 dev ve2 proto bird metric 32
10.4.1.0/24 dev ve0 proto kernel scope link src 10.4.1.1
10.4.1.0/24 dev ve0 proto bird scope link metric 32
192.168.220.0 via 10.0.3.1 dev ve2 proto bird metric 32
\ No newline at end of file
import pytest
import tests.kernel as tk
def test_conv():
"""Wait for convergence"""
tk.convergence_threading()
LIMIT = 60
@pytest.mark.skipif(
tk.cf.save == False,
reason="No need to verify time of convergence during the check mode",
)
def test_wait():
"""Additional time to write the tables"""
tk.wait(5)
def test_krt_routes():
"""Test kernel routes"""
tk.test_krt_routes("krt")
def test_krt_protocols():
"""Test all protocols are running"""
tk.check_running_protocols()
"""Wait until the time (limit) runs out"""
tk.wait(LIMIT)
@pytest.mark.parametrize(
"expected_device", ["m1", "m2", "m3", "m4"],
)
def test_krt_routes(expected_device,):
"""
Test kernel routes:
-------------------
- default parametr :limit: set to the value 60 seconds
"""
tk.test_krt_routes("krt", expected_device)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment