Re: implementation of table row removal

This is a discussion on Re: implementation of table row removal within the SNMP Coders forums, part of the Networking and Network Related category; On Tue, 2005-10-18 at 16:29 +0100, Paul Davies wrote: > > I am implementing tables using table_data....


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-19-2005
Dave Shield
 
Posts: n/a
Default Re: implementation of table row removal

On Tue, 2005-10-18 at 16:29 +0100, Paul Davies wrote:
> > I am implementing tables using table_data.conf. I do need to be able to
> > add and delete rows external to the incoming SNMP requests.
> >
> > The table_removeEntry function requires netsnmp_table_data* and
> > netsnmp_table_row*. My issue is how can I get a handle on the
> > netsnmp_table_row* if I am not invoking this function via the
> > table_handler method.


There is an API routine:

netsnmp_table_row *
netsnmp_table_data_get( netsnmp_table_data *table,
netsnmp_variable_list * indexes)

which will return the row for a given set of index values
(and a similar one based on encoded OID instance values).


> > I have started considering the netsnmp_table_data_get_from_oid()
> > and netsnmp_table_data_get() helper functions


But you've already found them!

> > but not sure if I am going down the wrong road.
> > any thoughts would be appreciated, is there a better way?


No - that's the correct approach for your requirements.

I'm currently in the process of fleshing out a generic table API
framework, and applying it to the main table-related helpers.
This will include a set of standard API calls for constructing
and working with tables using any of these helpers. That should
hopefully be available with the 5.3 release.
But you're fortunate that the particular routines you need
are already in place for the table_data helper.


Dave


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:38 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0