# After reboot nested list (list under list) is not calling call-back function

**URL:** <https://dmap-community.ductus.global/t/after-reboot-nested-list-list-under-list-is-not-calling-call-back-function/1354>\
**Category:** YANG\
**Created:** [June 22, 2017, 11:44am UTC](https://dmap-community.ductus.global/t/after-reboot-nested-list-list-under-list-is-not-calling-call-back-function/1354 "2017-06-22T11:44:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinivasmkoppal](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@srinivasmkoppal](https://dmap-community.ductus.global/u/srinivasmkoppal)\
**Post date:** [June 22, 2017, 11:44am UTC](https://dmap-community.ductus.global/t/after-reboot-nested-list-list-under-list-is-not-calling-call-back-function/1354/1 "2017-06-22T11:44:11Z")

</div>

I am trying to create list under one more list, as bellow. The interface hook functions and keypath are going while creating new bridge-port, during reboot bridge-port(nested-list) keypath is not called.

```auto
        list interface {
                tailf:info "Configure vrf interface";
                view:keymap keymap_vrf_intf;
                view:register-hook "interface";
                key "vrf-if-type vrf-if-id vrf-if-util-type";
                leaf vrf-if-id {
                    tailf:info "VRF interface scope identifier";
                    tailf:validate vrf_if_id_validate
                    {
                       tailf:dependency .;
                    }
                    type uint16 {
                       tailf:info "VRF interface scope identifier (0 to 255)";
                       range "0 .. 255";
                    }
                }

....
....
               list bridge-port {
                  if-feature router-dcl:METACLI_VRF_IPFE;
                  max-elements 34;
                  must "../vrf-if-type = 'bridge'"
                  {
                       error-message "specified vrf-if-type is not \"bridge\" ";
                  }
                  key "br-if-util-type encap-if-type br-if-id";
                  view:register-hook "bridgeport";
                  leaf br-if-util-type {
                      tailf:info "Bridge interface utilization type";
                      type enumeration {
                          enum "vsp" {
                             value 0;
                          }
                          enum "access" {
                             value 1;
                          }
                          enum "mirror" {
                             value 2;
                          }
                          tailf:info "br-if-util-type (either \"vsp\", \"access\", \mirror\")";
                      }
                  }
              ...
              ...
                  tailf:cli-suppress-list-no;
               }
               tailf:cli-suppress-list-no;
        }

```

Is anything im missing here?

---

<div class="post-metadata">

**Author:** ![mnovak](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/mnovak/32/183_2.png) [@mnovak](https://dmap-community.ductus.global/u/mnovak)\
**Post date:** [June 23, 2017, 8:16am UTC](https://dmap-community.ductus.global/t/after-reboot-nested-list-list-under-list-is-not-calling-call-back-function/1354/2 "2017-06-23T08:16:30Z")

</div>

Hello,

`view:register-hook` is not annotation extension directly supported by ConfD, it is custom application related extension. You should address question to application support.

> [@srinivasmkoppal](#):
>
> view:register-hook “interface”;

If hook code is generated from annotation, I suggest you first check generated code if hook(s) implementation is present (function that creates hook).

From description it is no fully clear to me if `view:register-hook "interface"` is called, but `view:register-hook "bridgeport"` is not called or both are not called.
