Yes, the MibLoader.load() API is impractical in this case. Instead, do the following:
1. Use the getAllMibs() method in MibLoader to retrieve a list of all loaded MIBs. 2. Call the isLoaded() method for each Mib returned to see if it was explicitly loaded (or just imported). Have a look at the source code in net.percederberg.mibble.MibblePrinter if you need an example of this. Best regards, /Per On Thu, Sep 29, 2011 at 10:30, Andy 334 <andy.togo...@hotmail.com> wrote: > > Hi! > > I am having trouble loading multiple definitions from a single file - only > the first module is loaded. MibbleValidator doesn't complain. MibbleBrowser > also loads just the first part. However, if I split the file manually then > the import (of all the parts) works. > > The MIB file is available here: > http://extremenetworks.com/libraries/services/v762b3.mib > > Judging by this bug report Mibble should support loading multiple definitions > from a single file: > http://savannah.nongnu.org/bugs/index.php?10261 > > This is the code I use for loading the file: > ----- > public Mib loadMib(File file) throws Exception { > MibLoader loader = new MibLoader(); > loader.addDir(file.getParentFile()); > return loader.load(file); > } > ----- > > Am I missing something? > > Thank you! > > Kind regards, > > Andy > _______________________________________________ > Mibble-users mailing list > Mibble-users@nongnu.org > https://lists.nongnu.org/mailman/listinfo/mibble-users > _______________________________________________ Mibble-users mailing list Mibble-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/mibble-users