i want to write a python script for a device NGX-5500 whose vendor is telllabs i hv to write python file like some other device file i m giving u example here below
import java.lang as lang
import java.util as util
import com.visionael.DataCollection.TL1Dim as TL1Dim
import com.visionael.DataCollection.util.VProperties as VProperties
import com.visionael.DataCollection.util.VListMap as VListMap
from BaseFamily import *
# name of the script. Just for log messages.
scriptName="Optera3500";
class Optera3500(BaseFamily):
# list of keywords intrested to visionael in device card port objects etc.
# A:B A-> keyword name in device response B->visionael property name.
deviceDict={'Vendor':'MANUFACTURER' , 'Model':'DESCRIPT' , 'NETYPE':'TYPE' , 'SWRelease':'SOFTWARE_VERSION' , 'PEC':'PART_NO' , 'REL':'HARDWARE_REV' , 'CLEI':'CLEI' };
#Below is an example of how to add a TL1 property to the Item Tree Node. The property being added is 'AGE'
#cardDict={'AGE':'TL1 Age' ,'CLEI':'CLEI' ,'CTYPE':'CTYPE' , 'PEC':'PART_NO' , 'REL':'HARDWARE_REV' , 'SER':'SERNO' , 'MDAT':'MANUFACTURE_DATE' , 'ONSC':'ON_SINCE' };
cardDict={'CLEI':'CLEI' ,'CTYPE':'CTYPE' , 'PEC':'PART_NO' , 'REL':'HARDWARE_REV' , 'SER':'SERNO' , 'MDAT':'MANUFACTURE_DATE' , 'ONSC':'ON_SINCE' };
portDict={'TMGREF':'TMGREF'};
LOAM_SLOT_NO=201;
IO_SLOT_NO_STARTS=300;
SHELF_NO=1;