mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 18:58:01 +00:00 
			
		
		
		
	tested on debbie
This commit is contained in:
		| @@ -1,7 +1,10 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| export PATH=".:$PATH" | export PATH=".:$PATH" | ||||||
| FM="./lf_firemod.pl" | FM="./lf_firemod.pl" | ||||||
|  | mgr=idtest | ||||||
|  | rsrc=3 | ||||||
| max=1000 | max=1000 | ||||||
|  | numvlan=199 | ||||||
| connections=() | connections=() | ||||||
| for c in `seq 1 $max`; do | for c in `seq 1 $max`; do | ||||||
|   n=$(( (10 * $max) + $c )) |   n=$(( (10 * $max) + $c )) | ||||||
| @@ -11,18 +14,18 @@ done | |||||||
| index=0 | index=0 | ||||||
| portnum=0 | portnum=0 | ||||||
| for c in "${connections[@]}"; do | for c in "${connections[@]}"; do | ||||||
|   echo $FM --mgr localhost --resource 1 --action create_endp --endp_name ${c}-A --speed 25000 --endp_type lf_tcp --port_name "eth1#$portnum" |    echo -n . | ||||||
|  |   $FM --mgr $mgr --resource $rsrc --action create_endp --endp_name ${c}-A --speed 25000 --endp_type lf_tcp --port_name "eth1#$portnum" | ||||||
|  |  | ||||||
|   echo $FM --mgr localhost --resource 1 --action create_endp --endp_name ${c}-B --speed 25000 --endp_type lf_tcp --port_name "eth2" |   $FM --mgr $mgr --resource $rsrc --action create_endp --endp_name ${c}-B --speed 25000 --endp_type lf_tcp --port_name "eth2" | ||||||
|    |    | ||||||
|   echo $FM --mgr localhost --resource 1 --action create_cx --cx_name ${c}  --endps ${c}-A,${c}-B |   $FM --mgr $mgr --resource $rsrc --action create_cx --cx_name ${c} --cx_endps ${c}-A,${c}-B --report_timer 8000 | ||||||
|  |    echo -n o | ||||||
|   # set report timer |  | ||||||
|  |  | ||||||
|   index=$((index + 1)) |   index=$((index + 1)) | ||||||
|   portnum=$((index % 100)) |   portnum=$((index % $numvlan)) | ||||||
| done | done | ||||||
| echo "done" | echo " done" | ||||||
|  |  | ||||||
|  |  | ||||||
| # | # | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jed Reynolds
					Jed Reynolds