|
From: | Andy 334 |
Subject: | Re: [Mibble-users] Multiple MIB definitions in a single file |
Date: | Mon, 3 Oct 2011 06:48:32 +0000 |
Per, thank you for the info! Works like charm. :) Kind regards, Andy > Date: Sun, 2 Oct 2011 11:55:00 +0200 > From: address@hidden > To: address@hidden > Subject: Re: [Mibble-users] Multiple MIB definitions in a single file > > 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 <address@hidden> 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 > > address@hidden > > https://lists.nongnu.org/mailman/listinfo/mibble-users > > > > _______________________________________________ > Mibble-users mailing list > address@hidden > https://lists.nongnu.org/mailman/listinfo/mibble-users |
[Prev in Thread] | Current Thread | [Next in Thread] |