# "tailf:display-when" is not supported in action?

**URL:** <https://dmap-community.ductus.global/t/tailf-display-when-is-not-supported-in-action/2433>\
**Category:** YANG\
**Created:** [April 23, 2019, 5:39pm UTC](https://dmap-community.ductus.global/t/tailf-display-when-is-not-supported-in-action/2433 "2019-04-23T17:39:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![buddha87](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@buddha87](https://dmap-community.ductus.global/u/buddha87)\
**Post date:** [April 23, 2019, 5:39pm UTC](https://dmap-community.ductus.global/t/tailf-display-when-is-not-supported-in-action/2433/1 "2019-04-23T17:39:05Z")

</div>

I try to convert tailf:action to action. After updates, I try to compile the file but saw the below errors:  
error: unexpected keyword ‘tailf:display-when’ .

The “action” looks like

> action external-status {  
> tailf:exec “/usr/libexec/confd/external-lva-port-status”;  
> tailf:display-when “…/…/…/capabilities/distribution = ‘hammer’”;  
> tailf:info “Display external LVA port status”;  
> tailf:cli-mount-point “show”;  
> output {…}  
> }

The error is caused because “tailf:display-when” is not supported in action ?

Thanks.

---

<div class="post-metadata">

**Author:** ![per](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@per](https://dmap-community.ductus.global/u/per)\
**Post date:** [April 23, 2019, 7:07pm UTC](https://dmap-community.ductus.global/t/tailf-display-when-is-not-supported-in-action/2433/2 "2019-04-23T19:07:10Z")

</div>

> [@buddha87](#):
>
> The error is caused because “tailf:display-when” is not supported in action ?

Yes, this (and some CLI extensions) was an oversight when support for YANG 1.1 `action` was initially implemented. The actual implementation supported the same substatements for `action` as for `tailf:action`, but the grammar defined by `tailf-common.yang` didn’t allow it. Fixed in ConfD 6.5.7, 6.6.2, 6.7.1, 7.1 and later versions.
