Snmpwalk fails for list inside a list config true

Hi,
I have this schema:

container system {
  container works {
    config false;
    list works_l1 {
      tailf:secondary-index snmp {
        tailf:index-leafs name;
        tailf:sort-order snmp;
      }
      key name;
      leaf name { type string; }
      list works_l2 {
        key name;
        leaf name { type string; }
      }  
    }
  }
  container fails {
    list fails_l1 {
      tailf:secondary-index snmp {
        tailf:index-leafs name;
        tailf:sort-order snmp;
      }
      key name;
      leaf name { type string; }
      list fails_l2 {
        key name;
        leaf name { type string; }
        tailf:callpoint cp1;
      }  
    }
  }
}

When I run snmpwalk on this schema, it works for the works container, but fails for the fails container. I tried playing with the tailf:secondary-index however I can (put it inside the inner list fails_l2 for example) but non works.
The difference between container works and fails is just the config false (for works).
In fails/fails_l1/fails_l2/cp1 I return the next entry successfully

Please advise,
Thanks!

Hi,

It is interesting that you are having more difficulty with the config true container but I think more information is necessary. You don’t show a callpoint for the config false container. It sounds like you are correctly returning the next entry for the config true container so is that same logic running for the config false? (but again it is not shown so I’m wondering what data the snmpwalk is returning for the config false container).

Regards,
Scott

I forgot to add the tailf:callpoint for container works :confused:
Because this is config false the callpoint is over the whole list (I’ve edited my original question)
I can’t seem to edit my original question.
I wanted to add that callpoint.
Also leaf-a under /system/fails/fails_l1/fails_l2/leaf-a.

And not as in the container fails, in the list fails_l2 only.

I do correctly return the appropriate values for both lists. I do see the correctly in the CLI, for example.

These are the logs I get from devel.log and snmp.log:

<DEBUG> 19-Dec-2024::19:25:58.411 myhost confd[<0.1945.0>]: devel-c get_next succeeded for callpoint 'cp1' path /system:system/fails/fails_l1{e1}/fails_l2
<DEBUG> 19-Dec-2024::19:25:58.411 myhost confd[<0.123.0>]: devel-c close_usess db request daemon id: 3
<DEBUG> 19-Dec-2024::19:25:58.411 myhost confd[<0.123.0>]: devel-c get_elem request for callpoint 'cp1' path /system:system/fails/fails_l1{e1}/fails_l2{e1_1}/leaf-a
<DEBUG> 19-Dec-2024::19:25:58.412 myhost confd[<0.123.0>]: devel-c db reply daemon id: 3
<DEBUG> 19-Dec-2024::19:25:58.412 myhost confd[<0.1945.0>]: devel-c get_elem succeeded for callpoint 'cp1' path /system:system/fails/fails_l1{e1}/fails_l2/leaf-a
<ERR> 19-Dec-2024::19:25:58.412 myhost confd[<0.419.0>]: devel-snmpa internal error: table get-next: systemFailsFailsl1Failsl2Table (internal exit: ...)
<ERR> 19-Dec-2024::19:25:58.412 myhost confd[<0.419.0>]: devel-snmpa {confd_snmpa_instr,table_func,[{table,systemFailsFailsl1Failsl2Table},'http://me.com/system',[fails_l2,fails_l1,fails,system],[{2,[leaf-a]},{3,[name,status]},{4,[leaf-a,status]},{5,rowstatus}]]} with get_next, returned bad column: 2. Using genErr.

INFO> 19-Dec-2024::19:34:28.234 myhost confd[920133]: snmp get-next-request reqid=1070391709 127.0.0.1:57186 (systemFailsFailsl1Failsl2Table)
<ERR> 19-Dec-2024::19:34:28.239 myhost confd[920133]: snmp get-response reqid=1070391709 127.0.0.1:57186 error-status=genErr ix=1 (systemFailsFailsl1Failsl2Table)
<INFO> 19-Dec-2024::19:34:28.240 myhost confd[920133]: snmp get-request reqid=1070391710 127.0.0.1:57186 (systemFailsFailsl1Failsl2Table)
<INFO> 19-Dec-2024::19:34:28.240 myhost confd[920133]: snmp get-response reqid=1070391710 127.0.0.1:57186 (systemFailsFailsl1Failsl2Table=noSuchObject)