By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,001 Members | 1,262 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,001 IT Pros & Developers. It's quick & easy.

want to write a python script

P: 1
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;
Nov 26 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.