How to Setup Standard Scripts
From TBwiki
Revision as of 15:31, 8 December 2011 by Luc Morissette (Talk | contribs)
Adding standard scripts to a system is easy and can be done in a few steps. Depending on the scripts, different parameters need to be added to the Routing tables. Steps are described here:
To setup the use of Standard scripts or other scripts, the scripts need to be created and assigned to the gateway configuration:
Gateway -> Routing Scripts -> Create New Script
NAP Priority routing
To set it up:
Gateway -> Configurations -> Use Script -> Defaults_scripts Gateway -> Routing scripts -> Example Scripts -> simple_routing.rb [Edit]
Unclick “load on startup” and Save
Gateway -> Routing scripts -> Example Scripts -> nap_priority_routing.rb [Edit]
Click “load on startup” and Save
Each NAP has its own priority setting
Gateway -> Configurations -> Naps -> Create New Nap Colum
Name: prio
Type attributes: integer
Default: 0
If two routes match, the lowest value will be first
0 has highest priority