Adding TableRows w/ multiple indexes

Frank Fock Frank.Fock____t-online.de
Wed Oct 11 22:51:49 CEST 2000



"Adelberg, Robert (RADELBER)" wrote:

> At initialization, I need to populate a mib table from a configuration file.
> I have a doubly indexed table defined as:
>
>     INDEX   { nodeIP, linkIndex }
>     ::= { linkTable 1 }
>
> The MibTable::add_row() only takes one index, how do I add a row with two
> indexes?

The index ::add_row() takes is the whole index.

>
> I tried it like this: where I want a row of (NodeA,Link123) and a row of
> (NodeA,Link321).
>
>         Oidx nodeindex = "10.0.0.207";
>         Oidx linkindex = "7";

So, in order to add the row concatenate the OIDs of the
subindexes:

Oidx index = nodeindex;
index += linkindex;
linkEntry::instance->add_row(index);

Regards,
Frank

--
Frank Fock - AGENT++
Email: frank____fock.de
Fax: +49 7195 177108





More information about the AGENTPP mailing list