It should conform to the LTC specs, limited by what is implemented thus far.
The command generator generates a working bash script with start,
stop, restart and usage functions.
The program starts up with an example config to demonstrate some of
the possibilities.
I forgot to update something in these notes last time. It is possible to
Import and Save your config, and possible to save the RC script. On the
Import/Export screen, select a config on your computer and click Load
to read it. click Save to save the config to your computer. On the
Command Generator screen, click Save to save the RC script to your
computer.
Specifying rates and ceiling rates has been mostly simplified. Here are a few guiding notes.
Specify the link's available bandwidth in the root class ONLY.
Specify the 'guaranteed' rate (Speed Limit) in subclasses as a
percentage of the parent class' rate.
Specify the 'ceiling' rate (Courtesy Limit) as a percentage of
the root class' rate.
Percentages can be integer (whole) numbers or floating point (real) numbers.
A collapsed root class displays the bandwidth and percentage of
it that its kids (direct child nodes) have used.
A collapsed subclass displays
its rate (Speed Limit) as a percentage of its parent's rate,
its ceiling (Courtesy Limit) as a percentage of the root class' rate, and
the percentage of its bandwidth used by its kids.
This change makes it much easier to divvy up the bandwidth. It also greatly eases
your task when changing the available bandwidth.
Using the program
To import a config, click the Import/Export button (above the input area),
clear the input text area, paste your config, and click the Import button
below the input box. Or load a config file from your computer.
To start from scratch, click the Tool Config button and define your NICs
and their associated colors.
To Edit the config, click the TC Worksheet button.
Left-clicking most anything in the tree will produce a pop-up menu with a
title and the actions that are allowed given that item's status.
Click the menu's title to dismiss the menu.
Left-click an item to dismiss an existing menu and open the new one.
Click the large grey '-' to collapse that tree.
Click the large grey '+' to expand that tree.
Click a large green 'A' to bypass/disable that item in the bash script.
Click a large red/green 'not A' to activate that item.
To try your config on a system, click the TC Command Generator button, and click
the Save button to save the script to your computer. Or select the text
of the shell script, paste it into an editor on your target
system and save it (or paste it into a local editor, save it, and transfer
it to the target). Running the script with no arguments produces a usage
statement. Usable args are the standard stop, start and restart commands.
Other notes
Play with it and find the bugs. Remember to save early and often.
To import the configuration, the progam simply evals the content you
paste into the text area. Normally, this is a security issue. But unless
you are bent on doing malicious things to yourself, it's probably not
a concern at all.
This javascript program does not communicate with anything outside of your browser at
present; it does not and cannot access any web sites or your system. Like shaking
an executive PDA (Etch-A-Sketch), reloading the window restarts the program and all your work
will vanish.
This program seems to work well enough in Firefox, Epiphany and Konqueror.
It even seems to work in IE7. Other browsers have not been tested.
Please note that no browser detects and reports all EScript mistakes,
although some do better than others.