Skip navigation.
Home
A virtual network infrastructure
PlanetLab logo
Powered by PlanetLab

QuaggaGenerator.rb

QuaggaGenerator Class

External Methods

printConfig(node)

Given the virtual topology defined by the experimenter (i.e., interrelated Node and Link objects), creates several Quagga configuration files for running Quagga in the UML instance on node. The output files are quagga_zebra.cfg, quagga_ospf.cfg, and quagga_bgp.cfg.

Internal Methods

printBGP(node)

If the node is configured to run iBGP, prints BGP configuration to quagga_bgp.cfg. Declares every other node configured to run iBGP as a peer, and configures the node as a route reflector if specified by the topology.

printHeader(node)

Prints some comments into file quagga_zebra.cfg containing the node name and date/time that the file was generated. Also configures the hostname and Quagga password.

printOSPF(node)

If the node is configured to run OSPF, prints OSPF configuration to quagga_ospf.cfg. The hello-interval and dead-interval parameters are tuned from the defaults to make OSPF respond more quickly to link failures. OSPF advertises a route to the /24 connected to UML's eth0 interface. It also advertises the configured static routes if the node is not also running iBGP.

printZebra(node)

Prints address information for each UML interface into file quagga_zebra.cfg.