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";
}