Manu is not given

Hi,

We have the yang definitions below.
when I try to config tp-tunnels tp-tunnel and then do tab or ?, it doesn’t give me the manu options for the type.
when I write one of the type options, it doens give me the option to continue to config manu. then, under config, I have the options shown when I type ?.
caqn you please help me to understnad what should be changed in the yang file so we will have the options shown?

thanks
Inbal

    container tp-tunnels {
      description
        "Tunnels TP configuration data container";

	//tailf:callpoint tpTunnel;

      list tp-tunnel {
        key "name type";
        description "TP tunnel.";
        leaf name {
          type leafref {
            path "../config/name";
          }
          description "TP tunnel name.";
        }
        leaf type {
          type leafref {
            path "../config/type";
          }
          description "TP tunnel type.";
        }
        uses tp-tunnel-properties;
            uses tp-lsps-grouping;

      }
    }

}

/* TP tunnel configuration/state grouping */
grouping tp-tunnel-properties {
  description
    "Top level grouping for tunnel properties.";
  container config {
    description
      "Configuration parameters relating to
       tunnel properties";
    uses tp-tunnel-params_config;
  }
  container state {
    config false;
    description
      "State information associated with tunnel
       properties";
    uses tp-tunnel-params_config;
    uses tunnel-params_state;
  }

}

/* TP tunnel configuration data */
grouping tp-tunnel-params_config {
description
“Configuration parameters relating to TP tunnel”;
leaf name {
type string{
length “1…32”;
}

  description "TP tunnel name.";
}
leaf type {
  type identityref {
    base te-types:tunnel-p2p;
  }
  description "TP tunnel type. P2P types only";
}

The target of the leafref refers to instances not nodes in the data-model, i.e the leaf you refer to must exist.

Try turning the leafrefs around going from tp-tunnel-properties and tp-tunnel-params_config to tp-tunnels.

For more information; see section 3.10. An Example: Modeling a List of Interfaces in the User Guide. (Especially section 3.10.4 where the complete model is available.)