How to Setup Standard Scripts

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(New page)
 
(added details)
Line 1: Line 1:
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:<br>
+
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:<br>  
  
To setup the use of Standard scripts or other scripts, the scripts need to be created and assigned to the gateway configuration:<br>
+
To setup the use of Standard scripts or other scripts, the scripts need to be created and assigned to the gateway configuration:<br>  
 
<pre>Gateway -&gt; Routing Scripts -&gt; Create New Script
 
<pre>Gateway -&gt; Routing Scripts -&gt; Create New Script
</pre>
+
</pre>  
<br>
+
Then the scripts need to be assigned to the gateway (routing engine):<br>  
 
+
NAP Priority routing<br>To set it up:<br>
+
 
<pre>Gateway -&gt; Configurations -&gt; Use Script -&gt; Defaults_scripts
 
<pre>Gateway -&gt; Configurations -&gt; Use Script -&gt; Defaults_scripts
 
Gateway -&gt; Routing scripts -&gt; Example Scripts -&gt; simple_routing.rb [Edit]
 
Gateway -&gt; Routing scripts -&gt; Example Scripts -&gt; simple_routing.rb [Edit]
</pre>
+
</pre>  
Unclick “load on startup” and Save<br>
+
and the static routing script needs to be disabled. Unclick “Load on startup” and Save.<br>
 +
 
 +
[[Image:Remove_load_on_startup.jpg]]<br>
 +
 
 +
 
 +
 
 +
NAP Priority routing<br>To set it up:<br>
 
<pre>Gateway -&gt; Routing scripts -&gt; Example Scripts -&gt; nap_priority_routing.rb [Edit]
 
<pre>Gateway -&gt; Routing scripts -&gt; Example Scripts -&gt; nap_priority_routing.rb [Edit]
</pre>
+
</pre>  
 
Click “load on startup” and Save<br><br>Each NAP has its own priority setting  
 
Click “load on startup” and Save<br><br>Each NAP has its own priority setting  
 
<pre>Gateway -&gt; Configurations -&gt; Naps -&gt; Create New Nap Colum
 
<pre>Gateway -&gt; Configurations -&gt; Naps -&gt; Create New Nap Colum
</pre>
+
</pre>  
Name: prio<br>Type attributes: integer<br>Default: 0
+
Name: prio<br>Type attributes: integer<br>Default: 0  
  
 
If two routes match, the lowest value will be first<br>0 has highest priority<br>
 
If two routes match, the lowest value will be first<br>0 has highest priority<br>

Revision as of 11:05, 9 December 2011

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

Then the scripts need to be assigned to the gateway (routing engine):

Gateway -> Configurations -> Use Script -> Defaults_scripts
Gateway -> Routing scripts -> Example Scripts -> simple_routing.rb [Edit]

and the static routing script needs to be disabled. Unclick “Load on startup” and Save.

Remove load on startup.jpg


NAP Priority routing
To set it up:

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

Personal tools