Commit 2987a008 authored by Matous Holinka's avatar Matous Holinka
Browse files

mh-ospf-single-area: minor fixes. Duplicate files were removed

parent aa382a7e
cf-ospf-authentication
\ No newline at end of file
import tests.kernel as tk
def test_conv():
"""Wait for convergence"""
tk.convergence_threading()
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()
import tests.kernel as tk
def test_conv():
"""Wait for convergence"""
tk.convergence_threading()
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()
import tests.kernel as tk
def test_conv():
"""Wait for convergence"""
tk.convergence_threading()
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()
import tests.kernel as tk
def test_conv():
"""Wait for convergence"""
tk.convergence_threading()
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()
import tests.kernel as tk
def test_conv():
"""Wait for convergence"""
tk.convergence_threading()
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()
log "bird.log" all;
# debug protocols all;
router id 192.168.1.1;
router id 10.0.0.1;
ipv4 table master4;
ipv6 table master6;
......
log "bird.log" all;
# debug protocols all;
router id 192.168.2.1;
router id 10.0.0.2;
ipv4 table master4;
ipv6 table master6;
......
log "bird.log" all;
# debug protocols all;
router id 192.168.3.1;
router id 10.0.0.3;
ipv4 table master4;
ipv6 table master6;
......
log "bird.log" all;
# debug protocols all;
router id 192.168.4.1;
router id 10.0.0.4;
ipv4 table master4;
ipv6 table master6;
......
......@@ -3,16 +3,14 @@ NETLAB_NODES="m1 m2 m3 m4"
netlab_init
if_dummy m1 ve0 192.168.1 2001:db8:01:1
if_dummy m2 ve0 192.168.2 2001:db8:02:1
if_dummy m3 ve0 192.168.3 2001:db8:03:1
if_dummy m4 ve0 192.168.4 2001:db8:04:1
if_dummy m1 ve0 10.1.1 2001:db8:1:1
if_dummy m2 ve0 10.2.1 2001:db8:2:1
if_dummy m3 ve0 10.3.1 2001:db8:3:1
if_dummy m4 ve0 10.4.1 2001:db8:4:1
if_net net1
if_link m1 ve1 net1 192.168.11.1
if_link m2 ve1 net1 192.168.11.2
if_link m3 ve1 net1 192.168.11.3
if_link m4 ve1 net1 192.168.11.4
if_veth m1 ve1 m2 ve2 10.0.1
if_veth m2 ve1 m3 ve2 10.0.2
if_veth m3 ve1 m4 ve2 10.0.3
if_veth m4 ve1 m1 ve2 10.0.4
netlab_start
import pytest
import tests.kernel as tk
LIMIT = 60
@pytest.mark.skipif(
tk.cf.save == False,
reason="No need to verify time of convergence during the check mode",
)
def test_wait():
"""Wait for convergence"""
tk.wait(40)
"""Wait until the time (limit) runs out"""
tk.wait(LIMIT)
def test_krt_routes():
"""Test kernel routes"""
tk.test_krt_routes('krt')
@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)
import tests.kernel as tk
def test_conv():
"""Wait for convergence"""
tk.convergence_threading()
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()
cf-ospf-ptmp/
\ No newline at end of file
import tests.kernel as tk
def test_conv():
"""Wait for convergence"""
tk.convergence_threading()
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()
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