mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
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:
parent
2ab8553078
commit
d9ea1cda81
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user