StartupGenerator.rb
Used to generate a startup script for each node in the experiment. The node's startup script is invoked when the user types make start.
StartupGenerator Class
There is a single method supported by this class:
- printConfig(node)
-
Given the virtual topology defined by the experimenter (i.e., interrelated Node and Link objects), creates a startup script for node. The name of the output file is startup.sh. It invokes the following programs in order:
- The uml_switch program, which acts as the glue between UML and the Click router.
- Click, using a configuration file generated for the node. Click attaches to the uml_switch via a Unix socket.
- OpenVPN if the node is supposed to run an OpenVPN server.
- UML, using a FC5 filesystem image containing XORP and Quagga. The base filesystem is read-only and all disk writes are recorded in the file named 'cow' associated with ubd0. The network interfaces defined in UML connect to the uml_switch.

