# YANG

**URL:** https://dmap-community.ductus.global/c/yang/8.md?page=2

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

**Page:** 3

---

## [How to use custom range for a list x/y/z1-x/y/z2](https://dmap-community.ductus.global/t/how-to-use-custom-range-for-a-list-x-y-z1-x-y-z2/4425)

<div class="topic-metadata">

**Author:** [@shibzhan](https://dmap-community.ductus.global/u/shibzhan)\
**Replies:** 1\
**Last updated:** [April 30, 2023, 10:32am UTC](https://dmap-community.ductus.global/t/how-to-use-custom-range-for-a-list-x-y-z1-x-y-z2/4425 "2023-04-30T10:32:32Z")

</div>

Hi, we have cli such line x/y/z1-x/y/z2, x=0…m, y=0…n, z1,z2=0…t x/y/z Slot/Subslot/Port for Modems e.g 0/1/0-0/1/10, 1/1/0-1/1/12, only the last digit changes in the range. list async-lines { …

---

## [Moving an element in a list](https://dmap-community.ductus.global/t/moving-an-element-in-a-list/4418)

<div class="topic-metadata">

**Author:** [@zitani](https://dmap-community.ductus.global/u/zitani)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 8:40am UTC](https://dmap-community.ductus.global/t/moving-an-element-in-a-list/4418 "2023-04-20T08:40:30Z")

</div>

Hello, Suppose I have a yang list that is ordered-by user and accessing that yang triggers a callback function. If I use move command to move an element I noticed that the callback is not triggered. Is it possible to t…

---

## [Restrict the access to some file operations (Implemented through clispec)](https://dmap-community.ductus.global/t/restrict-the-access-to-some-file-operations-implemented-through-clispec/4414)

<div class="topic-metadata">

**Author:** [@sneha](https://dmap-community.ductus.global/u/sneha)\
**Replies:** 1\
**Last updated:** [April 18, 2023, 3:06pm UTC](https://dmap-community.ductus.global/t/restrict-the-access-to-some-file-operations-implemented-through-clispec/4414 "2023-04-18T15:06:23Z")

</div>

Hi All, We have implemented some file operations like ‘file show/tail’ using clispec. But now we want to restrict the access to this operations for specific group users. The NACM rule I added: \<cmdrul…

---

## [How to define a string pattern that doesn't include a substring](https://dmap-community.ductus.global/t/how-to-define-a-string-pattern-that-doesnt-include-a-substring/4411)

<div class="topic-metadata">

**Author:** [@shibzhan](https://dmap-community.ductus.global/u/shibzhan)\
**Replies:** 1\
**Last updated:** [April 13, 2023, 12:05pm UTC](https://dmap-community.ductus.global/t/how-to-define-a-string-pattern-that-doesnt-include-a-substring/4411 "2023-04-13T12:05:46Z")

</div>

I would like define a string pattern that doesn’t include a substring “last-as”. leaf test2 { tailf:cli-multi-value; type string { pattern ‘^(?!.last-as).’; } } I have got the following when compile error: invali…

---

## [sysUpTime shows the time when the snmp agent is enabled and not the system time.](https://dmap-community.ductus.global/t/sysuptime-shows-the-time-when-the-snmp-agent-is-enabled-and-not-the-system-time/4402)

<div class="topic-metadata">

**Author:** [@rodrigoybf](https://dmap-community.ductus.global/u/rodrigoybf)\
**Replies:** 4\
**Last updated:** [April 6, 2023, 8:02am UTC](https://dmap-community.ductus.global/t/sysuptime-shows-the-time-when-the-snmp-agent-is-enabled-and-not-the-system-time/4402 "2023-04-06T08:02:16Z")

</div>

leaf sysUpTime { type yang:timeticks;

---

## [Tailf:export not working when given outside its module](https://dmap-community.ductus.global/t/tailf-export-not-working-when-given-outside-its-module/4385)

<div class="topic-metadata">

**Author:** [@ashik](https://dmap-community.ductus.global/u/ashik)\
**Replies:** 6\
**Last updated:** [March 31, 2023, 5:45am UTC](https://dmap-community.ductus.global/t/tailf-export-not-working-when-given-outside-its-module/4385 "2023-03-31T05:45:17Z")

</div>

Hi Team, I am trying to restrict quite number of yang models using tailf:export for various NBI. So i constructed a new yang just for this purpose. One observation I see is, module tailf-aaa { .. tailf:export none; …

---

## [How to restrict the length of a string type of the leaf to some value?](https://dmap-community.ductus.global/t/how-to-restrict-the-length-of-a-string-type-of-the-leaf-to-some-value/4307)

<div class="topic-metadata">

**Author:** [@sneha](https://dmap-community.ductus.global/u/sneha)\
**Replies:** 5\
**Last updated:** [March 20, 2023, 1:17pm UTC](https://dmap-community.ductus.global/t/how-to-restrict-the-length-of-a-string-type-of-the-leaf-to-some-value/4307 "2023-03-20T13:17:10Z")

</div>

I have a leaf of type string, whose length I want to restrict to ‘\<= 32’. Leaf is defind as: leaf aaa{ type string { pattern ‘\[a-zA-Z0-9\_.\]\[a-zA-Z0-9\_.-\]\*\[$\]?’; } description " "; tailf:info " "; } I have an id…

---

## [Create operation and Mandatory node](https://dmap-community.ductus.global/t/create-operation-and-mandatory-node/4360)

<div class="topic-metadata">

**Author:** [@amshavi777](https://dmap-community.ductus.global/u/amshavi777)\
**Replies:** 1\
**Last updated:** [February 23, 2023, 11:11am UTC](https://dmap-community.ductus.global/t/create-operation-and-mandatory-node/4360 "2023-02-23T11:11:42Z")

</div>

Hi, I see that “create” operation on leaf with “mandatory true” is not running, it just hangs the RPC request page. When we send “merge” operation all going fine, it is creating a CLI in device. Can some one please br…

---

## [Validating using must statement inside the action input](https://dmap-community.ductus.global/t/validating-using-must-statement-inside-the-action-input/4340)

<div class="topic-metadata">

**Author:** [@PratheeshM](https://dmap-community.ductus.global/u/PratheeshM)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 6:20pm UTC](https://dmap-community.ductus.global/t/validating-using-must-statement-inside-the-action-input/4340 "2023-02-15T18:20:07Z")

</div>

Hi, Can we use must validation inside the input of an action? Or the must will get executed if we are using tailf:exec in the action?

---

## [Confdc error: No must statements conditions annotations are not reflecting in schema](https://dmap-community.ductus.global/t/confdc-error-no-must-statements-conditions-annotations-are-not-reflecting-in-schema/4338)

<div class="topic-metadata">

**Author:** [@vasubabu](https://dmap-community.ductus.global/u/vasubabu)\
**Replies:** 4\
**Last updated:** [February 13, 2023, 11:59am UTC](https://dmap-community.ductus.global/t/confdc-error-no-must-statements-conditions-annotations-are-not-reflecting-in-schema/4338 "2023-02-13T11:59:49Z")

</div>

My yang file as follows below. must "current() = 1 or current() = 2 or current() = 3 or current() = 6 or current() = 7 or current() = 8" { …

---

## [Reset to default on deletion of config in CDB](https://dmap-community.ductus.global/t/reset-to-default-on-deletion-of-config-in-cdb/4324)

<div class="topic-metadata">

**Author:** [@linga.kartheek](https://dmap-community.ductus.global/u/linga.kartheek)\
**Replies:** 8\
**Last updated:** [February 6, 2023, 5:15pm UTC](https://dmap-community.ductus.global/t/reset-to-default-on-deletion-of-config-in-cdb/4324 "2023-02-06T17:15:02Z")

</div>

Hi, I have a query related to default values. I am using openconfig stp configuration with some annotations on top of it. default values are defined for config leafs. when i do “no stp”, configuration is getting dele…

---

## [Custom error-message for string validation?](https://dmap-community.ductus.global/t/custom-error-message-for-string-validation/4331)

<div class="topic-metadata">

**Author:** [@judegeorge](https://dmap-community.ductus.global/u/judegeorge)\
**Replies:** 1\
**Last updated:** [January 31, 2023, 6:50pm UTC](https://dmap-community.ductus.global/t/custom-error-message-for-string-validation/4331 "2023-01-31T18:50:32Z")

</div>

YANG allows an int data type to have a range validator with a custom error-message. Is there a similar way to have a custom error-message for pattern or length validation in a string data type? For example, something li…

---

## [Tailf:cli-completion-actionpoint callback not getting invoked when pressed "enter" in action command](https://dmap-community.ductus.global/t/tailf-cli-completion-actionpoint-callback-not-getting-invoked-when-pressed-enter-in-action-command/4326)

<div class="topic-metadata">

**Author:** [@kboyapa1](https://dmap-community.ductus.global/u/kboyapa1)\
**Replies:** 3\
**Last updated:** [January 26, 2023, 10:58am UTC](https://dmap-community.ductus.global/t/tailf-cli-completion-actionpoint-callback-not-getting-invoked-when-pressed-enter-in-action-command/4326 "2023-01-26T10:58:25Z")

</div>

I’m implementing a tailf:cli-completion-actionpoint callback to customise the possible completion leaf values as action input. The cli-completion-actionpoint callback, implemented in application code, is getting invoked …

---

## [Facing issue in schema type conversion during upgrade](https://dmap-community.ductus.global/t/facing-issue-in-schema-type-conversion-during-upgrade/4319)

<div class="topic-metadata">

**Author:** [@kboyapa1](https://dmap-community.ductus.global/u/kboyapa1)\
**Replies:** 3\
**Last updated:** [January 25, 2023, 11:28am UTC](https://dmap-community.ductus.global/t/facing-issue-in-schema-type-conversion-during-upgrade/4319 "2023-01-25T11:28:05Z")

</div>

We are changing the leaf type from “string” to union of “enumeration” and “string”. We are configuring the value as “-1” in the old schema and when this schema cdb is converted (through upgrade) into new schema, the valu…

---

## [Tailf:suppress-echo connundrum](https://dmap-community.ductus.global/t/tailf-suppress-echo-connundrum/4314)

<div class="topic-metadata">

**Author:** [@mghosh](https://dmap-community.ductus.global/u/mghosh)\
**Replies:** 5\
**Last updated:** [January 17, 2023, 7:10pm UTC](https://dmap-community.ductus.global/t/tailf-suppress-echo-connundrum/4314 "2023-01-17T19:10:56Z")

</div>

I have annotated one leaf with ‘tailf:suppress-echo true;’ With this I have this issues: When I try to provide the value in-line, the value gets printed in plaintext in CLI, but logged with \*\*\* in audit log (config-r…

---

## [How to hide "identity" when identityref are being used](https://dmap-community.ductus.global/t/how-to-hide-identity-when-identityref-are-being-used/4281)

<div class="topic-metadata">

**Author:** [@shail](https://dmap-community.ductus.global/u/shail)\
**Replies:** 3\
**Last updated:** [December 14, 2022, 3:56am UTC](https://dmap-community.ductus.global/t/how-to-hide-identity-when-identityref-are-being-used/4281 "2022-12-14T03:56:10Z")

</div>

Hi, I want to hide, one of the STP protocol from the enabled protocol list. Problem is that it is defined as identity and used with identityref so I am doubtful if deviation can work, I need to take full openconfig and…

---

## [Double minLength and maxLength](https://dmap-community.ductus.global/t/double-minlength-and-maxlength/4278)

<div class="topic-metadata">

**Author:** [@Alser08](https://dmap-community.ductus.global/u/Alser08)\
**Replies:** 3\
**Last updated:** [December 5, 2022, 1:31pm UTC](https://dmap-community.ductus.global/t/double-minlength-and-maxlength/4278 "2022-12-05T13:31:15Z")

</div>

Do you guys know when i override the type, it returns to minLength and maxLength?

---

## [Identical element in inner list items](https://dmap-community.ductus.global/t/identical-element-in-inner-list-items/4266)

<div class="topic-metadata">

**Author:** [@furkan](https://dmap-community.ductus.global/u/furkan)\
**Replies:** 1\
**Last updated:** [November 25, 2022, 2:28pm UTC](https://dmap-community.ductus.global/t/identical-element-in-inner-list-items/4266 "2022-11-25T14:28:54Z")

</div>

Hi all, I would like have an unique item among nested lists elements. Let’s say userprofile 1 can have multiple users, userprofile2 can have multiple users. In my scenario, I would like to restrict different userprofil…

---

## [confD7.7: MOP\_CREATE request not coming from confD but MOP\_DELETE comes](https://dmap-community.ductus.global/t/confd7-7-mop-create-request-not-coming-from-confd-but-mop-delete-comes/4226)

<div class="topic-metadata">

**Author:** [@vivek](https://dmap-community.ductus.global/u/vivek)\
**Replies:** 2\
**Last updated:** [November 24, 2022, 4:01pm UTC](https://dmap-community.ductus.global/t/confd7-7-mop-create-request-not-coming-from-confd-but-mop-delete-comes/4226 "2022-11-24T16:01:12Z")

</div>

We upgraded confD from 7.3 to 7.7 and with confD 7.7, I am seeing a weird issue with one of the Yang configuration. When I am configuring the config, my application is not receiving the add config i.e. MOP\_CREATE reques…

---

## [YANG "if-feature" statement](https://dmap-community.ductus.global/t/yang-if-feature-statement/127)

<div class="topic-metadata">

**Author:** [@nabil](https://dmap-community.ductus.global/u/nabil)\
**Replies:** 6\
**Last updated:** [November 16, 2022, 3:12am UTC](https://dmap-community.ductus.global/t/yang-if-feature-statement/127 "2022-11-16T03:12:46Z")

</div>

It is possible in YANG to "tag" certain nodes with an "if-feature" statement. The syntax is: if-feature ; The goal of features in YANG is to achieve a conditional support of data trees based on the hardware capabilit…

---

## [CDB: Upgrade failed: Upgrade transaction failed to validate: too many configured](https://dmap-community.ductus.global/t/cdb-upgrade-failed-upgrade-transaction-failed-to-validate-too-many-configured/4260)

<div class="topic-metadata">

**Author:** [@vivek](https://dmap-community.ductus.global/u/vivek)\
**Replies:** 1\
**Last updated:** [November 12, 2022, 1:22am UTC](https://dmap-community.ductus.global/t/cdb-upgrade-failed-upgrade-transaction-failed-to-validate-too-many-configured/4260 "2022-11-12T01:22:03Z")

</div>

Hello Team, I am using conf7.3 version and I have one small issue. The issue is with yang compatibility with the old images. Previously for a Yang CLI, we were using max-element value as 16. Now this max-element value …

---

## [Can't use "must" statement under for grouping](https://dmap-community.ductus.global/t/cant-use-must-statement-under-for-grouping/4250)

<div class="topic-metadata">

**Author:** [@chulian](https://dmap-community.ductus.global/u/chulian)\
**Replies:** 2\
**Last updated:** [November 3, 2022, 10:23am UTC](https://dmap-community.ductus.global/t/cant-use-must-statement-under-for-grouping/4250 "2022-11-03T10:23:57Z")

</div>

The following is my test yang model for “must” statement. grouping test\_group { container test { leaf test\_paramater { type empty; } } } list test { key name; leaf name { ta…

---

## [Tailf:suppress-echo on list key](https://dmap-community.ductus.global/t/tailf-suppress-echo-on-list-key/4240)

<div class="topic-metadata">

**Author:** [@Lakshmi](https://dmap-community.ductus.global/u/Lakshmi)\
**Replies:** 2\
**Last updated:** [October 31, 2022, 8:04am UTC](https://dmap-community.ductus.global/t/tailf-suppress-echo-on-list-key/4240 "2022-10-31T08:04:05Z")

</div>

Hi, Does “tailf:suppress-echo” work on a leaf defined as list key ? We added “tailf:suppress-echo true” to a leaf which is defined as a key to a list and found that the characters are echoed and also not masked with “\*…

---

## [Refining group not triggering error](https://dmap-community.ductus.global/t/refining-group-not-triggering-error/4246)

<div class="topic-metadata">

**Author:** [@IPbean](https://dmap-community.ductus.global/u/IPbean)\
**Replies:** 2\
**Last updated:** [October 28, 2022, 11:12pm UTC](https://dmap-community.ductus.global/t/refining-group-not-triggering-error/4246 "2022-10-28T23:12:44Z")

</div>

I’ve added a “refine” and “must” when “uses” refers to a group. An example of how it’s being used is as follows : uses bird-config { …

---

## [Change show order in cli](https://dmap-community.ductus.global/t/change-show-order-in-cli/4235)

<div class="topic-metadata">

**Author:** [@yagohoffmann](https://dmap-community.ductus.global/u/yagohoffmann)\
**Replies:** 3\
**Last updated:** [October 21, 2022, 12:14pm UTC](https://dmap-community.ductus.global/t/change-show-order-in-cli/4235 "2022-10-21T12:14:03Z")

</div>

I’m using tailf:sort-priority inside a list to change how items are shown in CLI, but seems like it doesn’t change the position of the key item, wich is always the first. Example: list myList { key myLeaf3; le…

---

## [Trying to use tailf:id-value](https://dmap-community.ductus.global/t/trying-to-use-tailf-id-value/4230)

<div class="topic-metadata">

**Author:** [@barry\_f](https://dmap-community.ductus.global/u/barry_f)\
**Replies:** 2\
**Last updated:** [October 16, 2022, 3:25pm UTC](https://dmap-community.ductus.global/t/trying-to-use-tailf-id-value/4230 "2022-10-16T15:25:31Z")

</div>

I saw a comment here saying tailf:id-value deprecated, but nothing about that in any documentation or any warnings from the compiler. Is it still supported? Using confd-7.2.3.4. A couple things I tried: identity SIDMG…

---

## [Over ride yang show command with action point worker](https://dmap-community.ductus.global/t/over-ride-yang-show-command-with-action-point-worker/4219)

<div class="topic-metadata">

**Author:** [@phani](https://dmap-community.ductus.global/u/phani)\
**Replies:** 1\
**Last updated:** [October 12, 2022, 12:21pm UTC](https://dmap-community.ductus.global/t/over-ride-yang-show-command-with-action-point-worker/4219 "2022-10-12T12:21:58Z")

</div>

Hi, For backward compatibility purpose need to override existing show command defined in the yang with a action point. Is it possible ? "show bgp neighbor brief " registered by process a. Now we wanted to use the sam…

---

## [Default Value for List](https://dmap-community.ductus.global/t/default-value-for-list/4222)

<div class="topic-metadata">

**Author:** [@beserb](https://dmap-community.ductus.global/u/beserb)\
**Replies:** 1\
**Last updated:** [October 9, 2022, 8:38pm UTC](https://dmap-community.ductus.global/t/default-value-for-list/4222 "2022-10-09T20:38:45Z")

</div>

Hi, Is it possible to define default value for a list? According to RFC 7950, default value can be defined for typedef, leaf, leaf-list and choice. In case I want to have a list with default element, do I have to define…

---

## [Leaf Value From Lookup Table](https://dmap-community.ductus.global/t/leaf-value-from-lookup-table/4218)

<div class="topic-metadata">

**Author:** [@beserb](https://dmap-community.ductus.global/u/beserb)\
**Replies:** 2\
**Last updated:** [October 1, 2022, 7:59am UTC](https://dmap-community.ductus.global/t/leaf-value-from-lookup-table/4218 "2022-10-01T07:59:53Z")

</div>

Hi, I have a model where 3 leaves are defined: leaf-a, leaf-b and leaf-c. The value of leaf-c is directly dependent on the values of leaf-a and leaf-b. For instance, if a request with “leaf-a = 10” and “leaf-b = 20” i…

---

## [Expecting below cli in confd but not able to achieve](https://dmap-community.ductus.global/t/expecting-below-cli-in-confd-but-not-able-to-achieve/4210)

<div class="topic-metadata">

**Author:** [@rashmi](https://dmap-community.ductus.global/u/rashmi)\
**Replies:** 3\
**Last updated:** [September 29, 2022, 1:40pm UTC](https://dmap-community.ductus.global/t/expecting-below-cli-in-confd-but-not-able-to-achieve/4210 "2022-09-29T13:40:25Z")

</div>

Hi, this is yang code we are using grouping modify-test { container MODIFY { description "Modification of a header"; tailf:cli-flatten-container; tailf:cli-sequence-com…

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

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