Appendix d: point-to-point connection mode – Thinklogical Router - ASCII-API User Manual

Page 33

Advertising
background image

Appendix D: Point-to-Point Connection mode

Version 4.4 of the API will allow input ports to be restricted to just one output port at a time. If input X is routed to output A
and then connected to output B, X will be disconnected from A and then moved to B. This mode is referred to as Point-to-Point
mode, or P2P for short.

The P2P definition files are stored on the Controller Card in the following files:

/var/local/router/restrict/upstream.csv

/var/local/router/restrict/downstream.csv

P2P mode is disabled when the definition files do not exist. By default, when there are no files, input ports may connect
simultaneously to any number of output ports. All VX Routers are shipped without any P2P files stored on the Controller card.

These files are in the form of a comma separated value (csv) file. Each entry in the file is the input port that you want to restrict
to P2P mode. You may have one or more entries per line in the file. The only characters allowed in the file are the digits 0 thru
9, commas, and spaces. Blank lines are allowed.

An example that set ports 1,2,3,4,9,11,15 to P2P mode is:

1,2,3,4
   9
11, 15

As a shortcut, you may use the value 9999 to indicate ALL input ports.

The upstream.csv file is read by all router models. The downstream.csv file is only read by the VX160 and VX320 models.
Downstream on the VX160 controls connections between the Blue card inputs and Green card outputs; on the VX320 it
controls the cards on the lower shelf.

If you make changes to either of these files, you may force the API to reread them by issuing the command:

killall -HUP vxrapi

If P2P files are found at startup, the API will log this to the file: /var/log/api. An example is shown below.

Mar 11 17:51:59 vxrouter vxrapi[508]: starting Vx80Router ASCII API Version: V4.4-0 (build: 20)
Mar 11 17:51:59 vxrouter vxrapi[508]: parsing P2P csv file /var/local/router/p2p/upstream.csv
Mar 11 17:51:59 vxrouter vxrapi[508]: parse_api_csv_file.c@133: line 1 of csv file

/var/local/router/p2p/upstream.csv '1,2,3,4 '

Mar 11 17:51:59 vxrouter vxrapi[508]: point-to-point mode enabled

Jun 12, 2014

Router ASCII API: V4.5-1

32/33

Advertising