Revision 7d4b7b7f

View differences:

mininet/net.py
14 14
top of a single Linux kernel.
15 15

  
16 16
Each host has:
17

  
17 18
A virtual console (pipes to a shell)
18 19
A virtual interfaces (half of a veth pair)
19 20
A parent shell (and possibly some child processes) in a namespace
mininet/node.py
1 1
#!/usr/bin/env python
2
"Node objects for Mininet."
2

  
3
"""
4
Node objects for Mininet.
5

  
6
Nodes provide a simple abstraction for interacting with
7
hosts, switches and controllers. Local nodes are simply
8
one or more processes on the local machine.
9

  
10
Node: superclass for all (currently only local) network nodes.
11

  
12
Host: a virtual host.
13

  
14
Switch: superclass for switch nodes.
15

  
16
UserSwitch: a switch using the user-space switch from the OpenFlow
17
    reference implementation.
18

  
19
KernelSwitch: a switch using the kernel switch from the OpenFlow reference
20
    implementation.
21

  
22
OVSSwitch: a switch using the OpenVSwitch OpenFlow-compatible switch
23
    implementation (openvswitch.org).
24

  
25
Controller: superclass for OpenFlow controllers. The default controller
26
    is controller(8) from the reference implementation.
27

  
28
NOXController: a controller node using NOX (noxrepo.org).
29

  
30
RemoteController: a remote controller node, which may use any
31
    arbitrary OpenFlow-compatible controller.
32
"""
3 33

  
4 34
from subprocess import Popen, PIPE, STDOUT
5 35
import os
mininet/util.py
1 1
#!/usr/bin/env python
2

  
2 3
"Utility functions for Mininet."
3 4

  
4 5
from time import sleep
mininet/xterm.py
2 2

  
3 3
"""
4 4
XTerm creation and cleanup.
5
Utility functions to run an xterm ( connected via screen( 1 ) ) on each host.
5
Utility functions to run an xterm (connected via screen(1)) on each host.
6 6

  
7
Requires xterm( 1 ) and GNU screen( 1 ).
7
Requires xterm(1) and GNU screen(1).
8 8
"""
9 9

  
10 10
import re

Also available in: Unified diff