jablonka.czprosek.czf

sedlo

Subversion Repositories:
[/] [trunk/] [sedlo] - Diff between revs 17 and 20

Show entire file Ignore whitespace

Rev 17 Rev 20
Line 117... Line 117...
#echo $sl_nodefrule #echo $sl_nodefrule
if [ "$sl_nodefrule x" == " x" ] if [ "$sl_nodefrule x" == " x" ]
then then
if [ $scm_info -gt 0 ]; then echo "Creating rule for nodef route" ; fi if [ $scm_info -gt 0 ]; then echo "Creating rule for nodef route" ; fi
$sl_ipcmd ru add from $sl_ipnodef to $sl_ipnodef lookup main prio $sl_prionodef $sl_ipcmd ru add from $sl_ipnodef to $sl_ipnodef lookup main prio $sl_prionodef
echo "delam novou"  
fi fi
   
} }
   
###################################################################### ######################################################################
Line 142... Line 141...
   
if [ $scm_info -gt 0 ]; then echo "Checking rules for ips" ; fi if [ $scm_info -gt 0 ]; then echo "Checking rules for ips" ; fi
   
sl_ips=`$sl_catcmd $sl_sedlocache/$sl_nmcnf | $sl_grepcmd "^ip" | $sl_awkcmd '{print $2"*"$4"*"$5"*"$6}'` sl_ips=`$sl_catcmd $sl_sedlocache/$sl_nmcnf | $sl_grepcmd "^ip" | $sl_awkcmd '{print $2"*"$4"*"$5"*"$6}'`
sl_rules=`$sl_ipcmd ru ls | $sl_grepcmd ^$sl_priorules":" | $sl_trcmd '[:blank:]' '*'` sl_rules=`$sl_ipcmd ru ls | $sl_grepcmd ^$sl_priorules":" | $sl_trcmd '[:blank:]' '*'`
   
   
   
#for all IPs we check and leave, change or create rule #for all IPs we check and leave, change or create rule
for sl_ip in $sl_ips for sl_ip in $sl_ips
do do
sl_ipn=`echo $sl_ip | $sl_awkcmd -F '*' '{print $1}'` sl_ipn=`echo $sl_ip | $sl_awkcmd -F '*' '{print $1}'`

Powered by WebSVN 2.2.1