# YANG

**URL:** https://dmap-community.ductus.global/c/yang/8.md

[Latest](https://dmap-community.ductus.global/latest.md) · [Categories](https://dmap-community.ductus.global/categories.md)

---

## [About the YANG category](https://dmap-community.ductus.global/t/about-the-yang-category/16)

<div class="topic-metadata">

**Author:** [@jlawitzke](https://dmap-community.ductus.global/u/jlawitzke)\
**Replies:** 0\
**Last updated:** [February 13, 2015, 3:26pm UTC](https://dmap-community.ductus.global/t/about-the-yang-category/16 "2015-02-13T15:26:35Z")

</div>

Discussion about YANG. This category is for discussion of the YANG data modeling language and YANG data models.

---

## [How to view annotatations and/or tags in an XML dump](https://dmap-community.ductus.global/t/how-to-view-annotatations-and-or-tags-in-an-xml-dump/4983)

<div class="topic-metadata">

**Author:** [@judegeorge](https://dmap-community.ductus.global/u/judegeorge)\
**Replies:** 0\
**Last updated:** [November 18, 2025, 6:46pm UTC](https://dmap-community.ductus.global/t/how-to-view-annotatations-and-or-tags-in-an-xml-dump/4983 "2025-11-18T18:46:15Z")

</div>

The ConfD/DMAP User Guide Chapter 11 describes “annotation” and “tag”. The descriptions here are very sparse. I want to annotate specific nodes in my YANG model, and have those annotations be visible in the XML dump of a…

---

## [Delete-when-empty not function as expected](https://dmap-community.ductus.global/t/delete-when-empty-not-function-as-expected/4974)

<div class="topic-metadata">

**Author:** [@Christine](https://dmap-community.ductus.global/u/Christine)\
**Replies:** 3\
**Last updated:** [August 5, 2025, 5:25pm UTC](https://dmap-community.ductus.global/t/delete-when-empty-not-function-as-expected/4974 "2025-08-05T17:25:30Z")

</div>

Dear Sir/Madam, I have a yang model with the following format: container hw-module { description ... list switch { description "Switch in the system"; tailf:cli-suppre…

---

## [Can we hide a enum from CLI generation?](https://dmap-community.ductus.global/t/can-we-hide-a-enum-from-cli-generation/4968)

<div class="topic-metadata">

**Author:** [@Vidya](https://dmap-community.ductus.global/u/Vidya)\
**Replies:** 1\
**Last updated:** [July 17, 2025, 6:03am UTC](https://dmap-community.ductus.global/t/can-we-hide-a-enum-from-cli-generation/4968 "2025-07-17T06:03:26Z")

</div>

Basically we are deprecating a single enum value from enumeration leaf node which will be obsoleted eventually. But once its obsolete is there a way to hide only that enum alone? Bcoz tailf:hidden works on leaf node not …

---

## [Show "context-match" doesn't work with leaf allow-range?](https://dmap-community.ductus.global/t/show-context-match-doesnt-work-with-leaf-allow-range/4891)

<div class="topic-metadata">

**Author:** [@adalbertoae](https://dmap-community.ductus.global/u/adalbertoae)\
**Replies:** 2\
**Last updated:** [June 23, 2025, 6:39pm UTC](https://dmap-community.ductus.global/t/show-context-match-doesnt-work-with-leaf-allow-range/4891 "2025-06-23T18:39:55Z")

</div>

Hello! We have a yang model that implements Dot1Q settings over ConfD 8.0.6, as follows: container dot1q { tailf:info "Dot1q settings"; tailf:cli-add-mode; list vlan { tailf:info "Static VLANs"; …

---

## [Tailf:link with absolute path provided (having list in it) causing confd bring up failure with an error: "bad key reference in symlink"](https://dmap-community.ductus.global/t/tailf-link-with-absolute-path-provided-having-list-in-it-causing-confd-bring-up-failure-with-an-error-bad-key-reference-in-symlink/4870)

<div class="topic-metadata">

**Author:** [@sneha](https://dmap-community.ductus.global/u/sneha)\
**Replies:** 3\
**Last updated:** [February 3, 2025, 12:49pm UTC](https://dmap-community.ductus.global/t/tailf-link-with-absolute-path-provided-having-list-in-it-causing-confd-bring-up-failure-with-an-error-bad-key-reference-in-symlink/4870 "2025-02-03T12:49:14Z")

</div>

Hi All, My schema looks like below, pw-change-date is new leaf added with the same type (string). augment /oc-system:system/oc-system:aaa/oc-system:authentication: ±-rw account | ±-rw accounts\* \[username\] | ±-r…

---

## [Order of Transaction Hooks invocation](https://dmap-community.ductus.global/t/order-of-transaction-hooks-invocation/4815)

<div class="topic-metadata">

**Author:** [@Cannigia](https://dmap-community.ductus.global/u/Cannigia)\
**Replies:** 0\
**Last updated:** [October 25, 2024, 2:00am UTC](https://dmap-community.ductus.global/t/order-of-transaction-hooks-invocation/4815 "2024-10-25T02:00:11Z")

</div>

Hello everyone, Checking confd documentation it is not clear to me the order in which transaction hooks are invoked. Suppose the following yang: container MyContainer { list myList { tailf:callpoint myListH…

---

## [How ConfD would evaluate an XPath expression with absolute path traversing a list?](https://dmap-community.ductus.global/t/how-confd-would-evaluate-an-xpath-expression-with-absolute-path-traversing-a-list/4806)

<div class="topic-metadata">

**Author:** [@vat22](https://dmap-community.ductus.global/u/vat22)\
**Replies:** 2\
**Last updated:** [October 21, 2024, 3:08pm UTC](https://dmap-community.ductus.global/t/how-confd-would-evaluate-an-xpath-expression-with-absolute-path-traversing-a-list/4806 "2024-10-21T15:08:45Z")

</div>

Hi All, Considering a yang module defined as follow: module module1 { container a { list b { key name; leaf name { type string; } leaf x { type uint32; } leaf y { type uint3…

---

## [Fetching leaf-lists inside nested-list](https://dmap-community.ductus.global/t/fetching-leaf-lists-inside-nested-list/4779)

<div class="topic-metadata">

**Author:** [@Saranya](https://dmap-community.ductus.global/u/Saranya)\
**Replies:** 2\
**Last updated:** [October 9, 2024, 2:01am UTC](https://dmap-community.ductus.global/t/fetching-leaf-lists-inside-nested-list/4779 "2024-10-09T02:01:46Z")

</div>

Hi, I am having the below yang, container bgp-neighbor-data { tailf:callpoint show-oper-cli; config false; leaf source-ppeid { type string; } list neighbors { key "neighbor"; lea…

---

## [Question on "tailf:cli-show-long-obu-diffs"](https://dmap-community.ductus.global/t/question-on-tailf-cli-show-long-obu-diffs/4774)

<div class="topic-metadata">

**Author:** [@absure](https://dmap-community.ductus.global/u/absure)\
**Replies:** 1\
**Last updated:** [September 23, 2024, 10:28am UTC](https://dmap-community.ductus.global/t/question-on-tailf-cli-show-long-obu-diffs/4774 "2024-09-23T10:28:09Z")

</div>

Hi Team, I see that " tailf:cli-show-long-obu-diffs" is supported on lists only. But, i want to do the same for leaf-lists, Is there any way to do that via some tailfs for C style CLIs? Below is the Model // ip name-s…

---

## [Must statement xpath confusion](https://dmap-community.ductus.global/t/must-statement-xpath-confusion/4737)

<div class="topic-metadata">

**Author:** [@synthnassizer](https://dmap-community.ductus.global/u/synthnassizer)\
**Replies:** 5\
**Last updated:** [September 21, 2024, 4:45pm UTC](https://dmap-community.ductus.global/t/must-statement-xpath-confusion/4737 "2024-09-21T16:45:33Z")

</div>

please consider the following yang model module module1 { import module2; container container1 { list list1 { key leaf1 leaf leaf1 {} container container2 { container conta…

---

## [Pls how to implement md5 encryption in yang](https://dmap-community.ductus.global/t/pls-how-to-implement-md5-encryption-in-yang/4761)

<div class="topic-metadata">

**Author:** [@lip](https://dmap-community.ductus.global/u/lip)\
**Replies:** 1\
**Last updated:** [August 28, 2024, 8:11pm UTC](https://dmap-community.ductus.global/t/pls-how-to-implement-md5-encryption-in-yang/4761 "2024-08-28T20:11:34Z")

</div>

Dear, I have a node that delivers the configuration in the CLI and then displays the md5 encrypted ciphertext.But I can only show plaintext when I use netconf to send it. This node is now structured like this: list me…

---

## [Cannot load configuration when tailf:cli-sequence-commands is being used](https://dmap-community.ductus.global/t/cannot-load-configuration-when-tailf-cli-sequence-commands-is-being-used/4703)

<div class="topic-metadata">

**Author:** [@creator](https://dmap-community.ductus.global/u/creator)\
**Replies:** 1\
**Last updated:** [August 26, 2024, 11:30am UTC](https://dmap-community.ductus.global/t/cannot-load-configuration-when-tailf-cli-sequence-commands-is-being-used/4703 "2024-08-26T11:30:28Z")

</div>

Hello, I am facing an issue in which an exported configuration is not loaded when I try to import it. I have traced the issue to the fact that saving exports an element that uses tailf:cli-sequence-commands into two se…

---

## [MUST statement feasibility](https://dmap-community.ductus.global/t/must-statement-feasibility/4754)

<div class="topic-metadata">

**Author:** [@binhddt](https://dmap-community.ductus.global/u/binhddt)\
**Replies:** 1\
**Last updated:** [August 22, 2024, 8:03am UTC](https://dmap-community.ductus.global/t/must-statement-feasibility/4754 "2024-08-22T08:03:58Z")

</div>

Dear, I have the following YANG: Container A: Leaf B, range {0, 1} Container C \[key leaf: D\] Leaf D Container E \[key leaf: F\] Leaf F Leaf G Leaf H I’m trying to make a MUST statement which allows B to be con…

---

## [Tailf to make CLI to exit the container and continue to input from the parent container when any leaf of current container has been set](https://dmap-community.ductus.global/t/tailf-to-make-cli-to-exit-the-container-and-continue-to-input-from-the-parent-container-when-any-leaf-of-current-container-has-been-set/4744)

<div class="topic-metadata">

**Author:** [@Vidya](https://dmap-community.ductus.global/u/Vidya)\
**Replies:** 2\
**Last updated:** [August 10, 2024, 3:29pm UTC](https://dmap-community.ductus.global/t/tailf-to-make-cli-to-exit-the-container-and-continue-to-input-from-the-parent-container-when-any-leaf-of-current-container-has-been-set/4744 "2024-08-10T15:29:31Z")

</div>

Requirement: veg pepper veg bell red yellow pepper veg bell red pepper veg bell yellow pepper Model: container veg { tailf:cli-sequence-command…

---

## [Debug order of CLI generation](https://dmap-community.ductus.global/t/debug-order-of-cli-generation/4748)

<div class="topic-metadata">

**Author:** [@Vidya](https://dmap-community.ductus.global/u/Vidya)\
**Replies:** 0\
**Last updated:** [August 8, 2024, 6:46am UTC](https://dmap-community.ductus.global/t/debug-order-of-cli-generation/4748 "2024-08-08T06:46:53Z")

</div>

Hi, We are hitting an issue where in somehow ace modification is split. show-cli shows the modification together but when CLIs are generated ace are split in 2 blocks for same ACL. Is there any debug capability to check…

---

## [Multiple choice leaf statement](https://dmap-community.ductus.global/t/multiple-choice-leaf-statement/4747)

<div class="topic-metadata">

**Author:** [@Manish](https://dmap-community.ductus.global/u/Manish)\
**Replies:** 1\
**Last updated:** [August 3, 2024, 9:10pm UTC](https://dmap-community.ductus.global/t/multiple-choice-leaf-statement/4747 "2024-08-03T21:10:06Z")

</div>

Hi, I need to design a CLI command using YANG where the user can configure one or multiple SSH MAC algorithms. Also, they can remove one or more algorithms in the “no” form. However, none of the methods I have tried mee…

---

## [Yang validation: value comparison between string and integer](https://dmap-community.ductus.global/t/yang-validation-value-comparison-between-string-and-integer/4740)

<div class="topic-metadata">

**Author:** [@sarojpanda](https://dmap-community.ductus.global/u/sarojpanda)\
**Replies:** 2\
**Last updated:** [July 30, 2024, 9:20am UTC](https://dmap-community.ductus.global/t/yang-validation-value-comparison-between-string-and-integer/4740 "2024-07-30T09:20:13Z")

</div>

i have below yang modules, module 2 vlan should be present in module 1 vlan. please suggest me how i can write the comparison logic correctly so that it can compare the exact value. example: entry vlan 2055,2056 …

---

## [Looking for Yang Model for MEF 3.0](https://dmap-community.ductus.global/t/looking-for-yang-model-for-mef-3-0/4734)

<div class="topic-metadata">

**Author:** [@kartikay](https://dmap-community.ductus.global/u/kartikay)\
**Replies:** 1\
**Last updated:** [July 22, 2024, 2:42pm UTC](https://dmap-community.ductus.global/t/looking-for-yang-model-for-mef-3-0/4734 "2024-07-22T14:42:26Z")

</div>

Hi Everyone, I am looking for Yang models for Metro Ethernet Forum (MEF 3.0). Official MEF 3.0 website provide yang models for some earlier version of MEF. I was wondering if I can get some sources of Yang model for the…

---

## [Could someone guide me with the category thing?](https://dmap-community.ductus.global/t/could-someone-guide-me-with-the-category-thing/4707)

<div class="topic-metadata">

**Author:** [@Dom](https://dmap-community.ductus.global/u/Dom)\
**Replies:** 1\
**Last updated:** [July 10, 2024, 9:13pm UTC](https://dmap-community.ductus.global/t/could-someone-guide-me-with-the-category-thing/4707 "2024-07-10T21:13:14Z")

</div>

This is my first post after just joining this discussion, so please forgive me and provide kind assistance if I have posted to the wrong subsection! I am new here but a real enthusiast and loving this community so far. …

---

## [How to check that a leaf contains only any value from a leaf-list from yang](https://dmap-community.ductus.global/t/how-to-check-that-a-leaf-contains-only-any-value-from-a-leaf-list-from-yang/1387)

<div class="topic-metadata">

**Author:** [@Himani](https://dmap-community.ductus.global/u/Himani)\
**Replies:** 7\
**Last updated:** [July 9, 2024, 7:06am UTC](https://dmap-community.ductus.global/t/how-to-check-that-a-leaf-contains-only-any-value-from-a-leaf-list-from-yang/1387 "2024-07-09T07:06:36Z")

</div>

Hi ALL i want to add a must statement in yang that leaf should have only the values from a particular leaf list. Regards, Himani

---

## [Can leaf-list operational data store non-unique data in ConfD 8.0.4?](https://dmap-community.ductus.global/t/can-leaf-list-operational-data-store-non-unique-data-in-confd-8-0-4/4711)

<div class="topic-metadata">

**Author:** [@roy](https://dmap-community.ductus.global/u/roy)\
**Replies:** 2\
**Last updated:** [July 4, 2024, 7:09pm UTC](https://dmap-community.ductus.global/t/can-leaf-list-operational-data-store-non-unique-data-in-confd-8-0-4/4711 "2024-07-04T19:09:34Z")

</div>

Hi, I’m using ConfD 8.0.4 and have the following data model, leaf-list noise { config false; type int16; } But when I try to save the non-unique values, e.g., \[ 10 10 10 \], I got some error saying has non-unique me…

---

## [Could Someone Guide me in Troubleshooting YANG Model Compilation Issues with ConfD?](https://dmap-community.ductus.global/t/could-someone-guide-me-in-troubleshooting-yang-model-compilation-issues-with-confd/4710)

<div class="topic-metadata">

**Author:** [@Dom](https://dmap-community.ductus.global/u/Dom)\
**Replies:** 1\
**Last updated:** [June 27, 2024, 12:26pm UTC](https://dmap-community.ductus.global/t/could-someone-guide-me-in-troubleshooting-yang-model-compilation-issues-with-confd/4710 "2024-06-27T12:26:12Z")

</div>

Hello there, I am working on a network management project and have encountered some issues with YANG model compilation using ConfD. I have been following the Tail-f documentation, but I am still running into problems th…

---

## [Configuring multiple devices of a given type using the same YANG model](https://dmap-community.ductus.global/t/configuring-multiple-devices-of-a-given-type-using-the-same-yang-model/4704)

<div class="topic-metadata">

**Author:** [@ibakard](https://dmap-community.ductus.global/u/ibakard)\
**Replies:** 4\
**Last updated:** [June 20, 2024, 3:45pm UTC](https://dmap-community.ductus.global/t/configuring-multiple-devices-of-a-given-type-using-the-same-yang-model/4704 "2024-06-20T15:45:20Z")

</div>

The YANG model for a device of a given type contains corresponding configuration and operational elements. It is assumed that the same YANG model will be used when configuring different instances of devices of this type…

---

## [Yang action for who command](https://dmap-community.ductus.global/t/yang-action-for-who-command/4698)

<div class="topic-metadata">

**Author:** [@ThanaKal](https://dmap-community.ductus.global/u/ThanaKal)\
**Replies:** 1\
**Last updated:** [May 30, 2024, 9:03am UTC](https://dmap-community.ductus.global/t/yang-action-for-who-command/4698 "2024-05-30T09:03:45Z")

</div>

hello, i would like if possible make the who command output available to other nb interfaces as well. is there an action-Yang for it available, so that all interfaces have access to its output? another way to do this, …

---

## [Special character \\ is rejected in confd](https://dmap-community.ductus.global/t/special-character-is-rejected-in-confd/4687)

<div class="topic-metadata">

**Author:** [@kramarat](https://dmap-community.ductus.global/u/kramarat)\
**Replies:** 4\
**Last updated:** [May 3, 2024, 3:01pm UTC](https://dmap-community.ductus.global/t/special-character-is-rejected-in-confd/4687 "2024-05-03T15:01:43Z")

</div>

Hi Team, In the below example “pre-share key” of type string, the user enters the password which can have any characters including special character , but in the below case if the input contains \\ then the CLI is reject…

---

## [Want to show options when clicked tab](https://dmap-community.ductus.global/t/want-to-show-options-when-clicked-tab/4673)

<div class="topic-metadata">

**Author:** [@Harshitha](https://dmap-community.ductus.global/u/Harshitha)\
**Replies:** 6\
**Last updated:** [April 17, 2024, 7:19am UTC](https://dmap-community.ductus.global/t/want-to-show-options-when-clicked-tab/4673 "2024-04-17T07:19:59Z")

</div>

container selectors { list selector { tailf:cli-suppress-mode; key facility; leaf facility { type identityref { bas…

---

## [Tailf extention not working](https://dmap-community.ductus.global/t/tailf-extention-not-working/4653)

<div class="topic-metadata">

**Author:** [@vootkur](https://dmap-community.ductus.global/u/vootkur)\
**Replies:** 0\
**Last updated:** [March 7, 2024, 11:03pm UTC](https://dmap-community.ductus.global/t/tailf-extention-not-working/4653 "2024-03-07T23:03:31Z")

</div>

Hi everyone, In one of the yang model, I was using below tailf\_yang\_extensions, with all the operations(create/merge/replace), it’s appending instead of removing first and adding new ?Could someone help me solving this …

---

## [Edit config 'Replace' behavior with talif 'cli-remove-on-change'](https://dmap-community.ductus.global/t/edit-config-replace-behavior-with-talif-cli-remove-on-change/4648)

<div class="topic-metadata">

**Author:** [@kwong.eureka](https://dmap-community.ductus.global/u/kwong.eureka)\
**Replies:** 1\
**Last updated:** [March 5, 2024, 6:18am UTC](https://dmap-community.ductus.global/t/edit-config-replace-behavior-with-talif-cli-remove-on-change/4648 "2024-03-05T06:18:45Z")

</div>

Hi all, I want to Replace an old Yang List with a new one. With ‘tailf cli-remove-on-change’ and if there is overlap entries between the old and new list, the order of the new list is not preserved. Looks like internal…

---

## [Tailf command to reset the configuration under sub-containers](https://dmap-community.ductus.global/t/tailf-command-to-reset-the-configuration-under-sub-containers/4645)

<div class="topic-metadata">

**Author:** [@kramarat](https://dmap-community.ductus.global/u/kramarat)\
**Replies:** 3\
**Last updated:** [March 1, 2024, 8:31am UTC](https://dmap-community.ductus.global/t/tailf-command-to-reset-the-configuration-under-sub-containers/4645 "2024-03-01T08:31:50Z")

</div>

Hi All, I have provided my Yang Tree below for reference. I want to remove the configuration of Container B when I configure Container A → address (or) ipv6. I tried using tailf:cli-recursive-delete; which woks only fo…

[Next page](https://dmap-community.ductus.global/c/yang/8.md?page=1)
