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.
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?