Move Node functions into their own file
Nodes include Switch, Host, and Controller; move these to a separate file. This file still could use some attention to hide private functions. Node seems like a primary class to extend, for adding stuff like Open vSwitch, so it could benefit from a simpler interface.
This commit is contained in:
@@ -13,7 +13,8 @@ from time import sleep
|
||||
|
||||
from ripcord.topo import FatTreeTopo
|
||||
|
||||
from mininet.net import Switch, Controller, Host, init
|
||||
from mininet.net import init
|
||||
from mininet.node import Switch, Controller, Host
|
||||
from mininet.logging_mod import lg, set_loglevel
|
||||
from mininet.util import make_veth_pair, move_intf, retry, quietRun
|
||||
from mininet.util import MOVEINTF_DELAY
|
||||
|
||||
Reference in New Issue
Block a user