XPath Check not working in input

 54 container service {
 55     tailf:action ppeer-statistics {
 56 input {
 57   leaf typeer {
 58       type string;
 59   }
 60   choice service-type {
 61     container smtp {
 62       tailf:display-when '../typeer != ""';
 63       presence "SMTP enabled";
 64       leaf smtp-relay {
 65         mandatory true;
 66         type boolean;
 67       }
 68       leaf use-virtual-mbox {
 69         type boolean;
 70       }
 71     }
 72   }
 73           }
 74 output {
 75     leaf result { type string; }
 76 }
 77 }
 78 }

Hi All

Display when check is not working inside input. When I don’t have input and output its working. Please let me know if I am missing something…

rgds
Balaji Kamal Kannadassan

You are right, that display:when (or a YANG when statement for that matter) does not work when inside an “input” statement. I don’t know if it is a bug or by design.
If you have access to Tail-f support, I suggest you file a ticket.

I am facing same issue. In input tag, xpath check is not working as expected. Is this bug resolved?

Thanks,
Sumeet