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.

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'
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.