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:
Brandon Heller
2009-12-20 14:19:32 -08:00
parent 4d2d52c3db
commit 89bf31030b
3 changed files with 343 additions and 226 deletions
+2 -1
View File
@@ -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