diff options
| author | Yash Ranjan <ranjany@vmware.com> | 2022-01-26 23:18:59 -0800 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2022-04-05 21:41:23 -0400 |
| commit | e7ed146d0b3573752efc4c4211034d9545315c10 (patch) | |
| tree | 5c01ae9af15a5be6cfbcdce98e6de192cbf24fb5 /tests/topotests/lib/topotest.py | |
| parent | d9fb94d6c327b53bb7303b43f863fb2262327ae5 (diff) | |
tests: Modifying existing topotests to incorporate mgmtd changes.dev/omgmtd
Signed-off-by: nguggarigoud <nguggarigoud@vmware.com>
Diffstat (limited to 'tests/topotests/lib/topotest.py')
| -rw-r--r-- | tests/topotests/lib/topotest.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index dc50d6b0c5..7c01728c80 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -1322,6 +1322,7 @@ class Router(Node): self.routertype = "frr" self.unified_config = None self.daemons = { + "mgmtd": 0, "zebra": 0, "ripd": 0, "ripngd": 0, @@ -1339,10 +1340,9 @@ class Router(Node): "babeld": 0, "pbrd": 0, "pathd": 0, - "snmpd": 0, - "mgmtd": 0, + "snmpd": 0 } - self.daemons_options = {"zebra": "", "mgmtd": ""} + self.daemons_options = {"mgmtd": "", "zebra": ""} self.reportCores = True self.version = None @@ -1386,13 +1386,14 @@ class Router(Node): self._config_frr(**params) else: # Test the provided path + cpath = os.path.join(self.daemondir, "mgmtd") + if not os.path.isfile(zpath): + raise Exception("No MGMTD binary found in {}".format(cpath)) + zpath = os.path.join(self.daemondir, "zebra") if not os.path.isfile(zpath): raise Exception("No zebra binary found in {}".format(zpath)) - cpath = os.path.join(self.daemondir, "mgmtd") - if not os.path.isfile(zpath): - raise Exception("No MGMTD binary found in {}".format(cpath)) # Allow user to specify routertype when the path was specified. if params.get("routertype") is not None: self.routertype = params.get("routertype") |
