Hi,
does somebody know how to include the function "replace_text" in a css script? The script "commit_vip_redundancy" for example makes extensive use of this function. But when I try to run a little script that uses this function, the CSS says "function REPLACE_TEXT undefined".
Any information on this function is welcome. Thanks!
example:
-----------
CSS1# sho script scrtest.txt
sho run | grep "ip address" > tmp.cfg
set localIP "10.255.64.189"
set backupIp "10.255.240.73"
set SUB_STRING_IP "ip address"
function REPLACE_TEXT call "tmp.cfg localIp backupIp 0 SUB_STRING_IP"
CSS1# script play scrtest.txt
CSS1# set localIP "10.255.64.189"
CSS1# set backupIp "10.255.240.73"
CSS1# set SUB_STRING_IP "ip address"
CSS1# function REPLACE_TEXT call "tmp.cfg localIp backupIp 0 SUB_STRING_IP"
Error undefined variable.
function:REPLACE_TEXT undefined.
Error in script playback line:5
>>>function REPLACE_TEXT call "tmp.cfg localIp backupIp 0 SUB_STRING_IP"
CSS1#
Script Playback cancelled.