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.
This commit is contained in:
Rafael Zalamena 2017-06-21 14:12:57 -03:00 committed by Donald Sharp
parent 2ab8553078
commit d9ea1cda81

View File

@ -246,9 +246,7 @@ class TopoGear(object):
class TopoRouter(TopoGear): class TopoRouter(TopoGear):
""" """
Router abstraction. Has the following properties: Router abstraction.
* cls: router class that will be used to instantiate
* name: router name
""" """
# The default required directories by Quagga/FRR # The default required directories by Quagga/FRR
@ -283,6 +281,14 @@ class TopoRouter(TopoGear):
} }
def __init__(self, tgen, cls, name, **params): 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__() super(TopoRouter, self).__init__()
self.tgen = tgen self.tgen = tgen
self.net = None self.net = None