Package Products :: Package ZenModel :: Module zenmib :: Class MibFile |
[hide private]
[frames] | no frames]

# Class MibFile

source code

A MIB file has the meta-data for a MIB inside of it.

Instance Methods | [hide private]
__init__(self, fileName, fileContents="") | source code
string |
removeMibComments(self, fileContents) Parses the string provided as an argument and extracts all of the ASN.1 comments from the string. | source code
list of strings |
splitFileToMIBs(self, fileContents) Isolates each MIB definition in fileContents into a separate string | source code
mapMibToDependents(self, mibDefinitions) | source code

Method Details | [hide private]

### removeMibComments(self, fileContents) | source code
Parses the string provided as an argument and extracts all of the ASN.1 comments from the string. Assumes that fileContents contains the contents of a well-formed (no errors) MIB file. Parameters: `fileContents` (string) - entire contents of a MIB file Returns: string text without any comments

### splitFileToMIBs(self, fileContents) | source code
Isolates each MIB definition in fileContents into a separate string Parameters: `fileContents` (string) - the complete contents of a MIB file Returns: list of strings MIB definition strings