]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Topogen: document new options
authorRafael Zalamena <rzalamena@gmail.com>
Wed, 21 Jun 2017 17:12:57 +0000 (14:12 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:11 +0000 (20:22 -0500)
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

index 72da0d444649cc95b297aa418979b046ed3a6934..250d4ba216d5c0c73e4f75672ee4812935ff9e27 100644 (file)
@@ -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