From d9ea1cda814e5553d295fc989d86982969cf9681 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Wed, 21 Jun 2017 14:12:57 -0300 Subject: [PATCH] Topogen: document new options We can now add routers to the topology using different daemon binaries path. This will allow us to run tests with different daemon versions and types. --- tests/topotests/lib/topogen.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index 72da0d4446..250d4ba216 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -246,9 +246,7 @@ class TopoGear(object): class TopoRouter(TopoGear): """ - Router abstraction. Has the following properties: - * cls: router class that will be used to instantiate - * name: router name + Router abstraction. """ # The default required directories by Quagga/FRR @@ -283,6 +281,14 @@ class TopoRouter(TopoGear): } def __init__(self, tgen, cls, name, **params): + """ + The constructor has the following parameters: + * tgen: Topogen object + * cls: router class that will be used to instantiate + * name: router name + * daemondir: daemon binary directory + * routertype: 'quagga' or 'frr' + """ super(TopoRouter, self).__init__() self.tgen = tgen self.net = None -- 2.39.5