Forum Replies Created
-
AuthorPosts
-
chassap1Participant
Thanks for the quick response. But unfortunately, I didn’t see any callbacks in my SIL being called. I need to capture the configuration and write it to the device. Thanks.
chassap1ParticipantI got my readonly leaf to return data. I needed to add –module=DDC-DEMO-TSN-SWITCH-MIB.
Now I’m trying to figure out how to figure out how to get-config from my readwrite leaf object.
chassap1ParticipantHere is my get function. I was expecting the value 0x4DDC. Note: In my original post I used a get-config command. I tried just a get command and got same results. Its like it can’t find my leaf node. Is there any other initialization I need to do?
/* put your static variables here */
static int32 readOnlyObject = 0x4DDC;
static int32 readwriteObject;/********************************************************************
* FUNCTION u_DDC_DEMO_TSN_SWITCH_MIB_tsnSystem_systemReadOnlyObject_get
*
* Get database object callback for leaf systemReadOnlyObject
* Path: /tsnSystem/systemReadOnlyObject
* Fill in ‘dstval’ contents
*
* INPUTS:
* see ncx/getcb.h for details (getcb_fn_t)
*
* RETURNS:
* error status
********************************************************************/
status_t u_DDC_DEMO_TSN_SWITCH_MIB_tsnSystem_systemReadOnlyObject_get (
val_value_t *dstval)
{
status_t res = NO_ERR;
int32 v_systemReadOnlyObject;if (LOGDEBUG) {
log_debug(“\nEnter u_DDC_DEMO_TSN_SWITCH_MIB_tsnSystem_systemReadOnlyObject_get callback”);
}/* set the v_systemReadOnlyObject var here, change zero */
v_systemReadOnlyObject = readOnlyObject;
VAL_INT(dstval) = v_systemReadOnlyObject;return res;
} /* u_DDC_DEMO_TSN_SWITCH_MIB_tsnSystem_systemReadOnlyObject_get */
- This reply was modified 4 years, 6 months ago by chassap1.
chassap1Participantthanks. looks like it worked.
-
AuthorPosts