# What is difference between "action" and "tailf:action"

**URL:** <https://dmap-community.ductus.global/t/what-is-difference-between-action-and-tailf-action/2288>\
**Category:** YANG\
**Created:** [February 8, 2019, 9:23pm UTC](https://dmap-community.ductus.global/t/what-is-difference-between-action-and-tailf-action/2288 "2019-02-08T21:23:37Z")\
**Posts on this page:** 3\
**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:** [February 8, 2019, 9:23pm UTC](https://dmap-community.ductus.global/t/what-is-difference-between-action-and-tailf-action/2288/1 "2019-02-08T21:23:38Z")

</div>

I have seen in some yang files which is using “action” keyword. I saw that structure is very similar as tailf:action, which has description, input, and output.

So what is difference between “action” and “tailf:action” ? Is that “action” deprecated and “tailf:action” is new version which replaced it ?

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:** [February 9, 2019, 1:13pm UTC](https://dmap-community.ductus.global/t/what-is-difference-between-action-and-tailf-action/2288/2 "2019-02-09T13:13:49Z")

</div>

> [@buddha87](#):
>
> So what is difference between “action” and “tailf:action” ? Is that “action” deprecated and “tailf:action” is new version which replaced it ?

No, it’s rather the other way around: the Tail-f tools have supported `tailf:action` as a proprietary extension ever since YANG was introduced, but with YANG 1.1, `action` was added as a standard statement - see [RFC 7950 - The YANG 1.1 Data Modeling Language](https://tools.ietf.org/html/rfc7950#section-7.15) . They work essentially the same - there are minor differences in the NETCONF encoding of requests and replies, but ConfD will actually handle both forms whether `tailf:action` or `action` is used in the YANG module. For YANG 1.1 modules, `action` should be preferred, since it is standard and thus can be understood by clients without knowledge of the Tail-f extensions.

---

<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:** [February 10, 2019, 2:19am UTC](https://dmap-community.ductus.global/t/what-is-difference-between-action-and-tailf-action/2288/3 "2019-02-10T02:19:45Z")

</div>

Thank you very much.
