]>
git.proxmox.com Git - mirror_frr.git/blob - tests/topotests/mgmt_startup/test_late_uniconf.py
1 # -*- coding: utf-8 eval: (blacken-mode 1) -*-
2 # SPDX-License-Identifier: ISC
4 # May 2 2023, Christian Hopps <chopps@labn.net>
6 # Copyright (c) 2023, LabN Consulting, L.L.C.
10 Verify routes present when staticd (backend client) is started after it's startup
11 config, contained inside a unified configuration file, is present during launch.
14 from lib
.topogen
import Topogen
15 from util
import _test_staticd_late_start
17 # pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
18 pytestmark
= [pytest
.mark
.staticd
]
21 @pytest.fixture(scope
="module")
23 "Setup/Teardown the environment and provide tgen argument to tests"
29 tgen
= Topogen(topodef
, request
.module
.__name
__)
32 # configure mgmtd using current mgmtd config file
33 tgen
.gears
["r4"].load_frr_config("frr.conf")
35 # Explicit disable staticd now..
36 tgen
.gears
["r4"].net
.daemons
["staticd"] = 0
43 def test_staticd_late_start(tgen
):
44 return _test_staticd_late_start(tgen
, tgen
.routers()["r4"])