p4utils.mininetlib.net module¶
This module is an extension of mininet.net that allows also router nodes.
-
class
p4utils.mininetlib.net.
P4Mininet
(*args, router=<class 'p4utils.mininetlib.node.FRRouter'>, **kwargs)[source]¶ Bases:
mininet.net.Mininet
P4Mininet is the Mininet Class extended with P4 switches.
-
addRouter
(name, cls=None, **params)[source]¶ Adds a router to the network.
Parameters: - name (string) – name of the router to add
- cls (type) – custom router class/constructor (optional)
Returns: added router
-