You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mininet.delController() raises TypeError when removing RemoteController #1254
Mininet.delController() fails when removing a RemoteController
Bug description
Calling Mininet.delController() with a RemoteController instance results in a TypeError.
The error occurs because delController() internally calls delNode(), which invokes node.stop(deleteIntfs=True). However, RemoteController.stop() does not accept the deleteIntfs argument.
Mininet.delController() should either successfully remove a RemoteController instance or clearly indicate that removing remote controllers is unsupported.
Actual behavior
The following exception is raised:
TypeError: RemoteController.stop() got an unexpected keyword argument 'deleteIntfs'
RemoteController.stop() does not accept the deleteIntfs argument.
Environment
Mininet version: 2.3.0
OS: Ubuntu 24.04.4 LTS
Python version: Not Python-version specific (tested with 3.12.3)
Installation method: Installed using apt (sudo apt install mininet)
Additional context
RemoteController instances can be created through addController() and are stored in Mininet.controllers. However, calling delController() on such an instance currently results in a TypeError because the cleanup path passes deleteIntfs=True to RemoteController.stop().
Traceback
Traceback (most recent call last):
File "/home/akash4-sys/Desktop/Project/fuzzer/sample.py", line 13, in <module>
net.delController(c0)
File "/usr/lib/python3/dist-packages/mininet/net.py", line 302, in delController
self.delNode( controller )
File "/usr/lib/python3/dist-packages/mininet/net.py", line 246, in delNode
node.stop( deleteIntfs=True )
TypeError: RemoteController.stop() got an unexpected keyword argument 'deleteIntfs'
Activity