# YANG

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

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

**Page:** 4

---

## [NACM rule to restrict access to an element in list](https://dmap-community.ductus.global/t/nacm-rule-to-restrict-access-to-an-element-in-list/4184)

<div class="topic-metadata">

**Author:** [@manish.varshney](https://dmap-community.ductus.global/u/manish.varshney)\
**Replies:** 10\
**Last updated:** [September 27, 2022, 7:44pm UTC](https://dmap-community.ductus.global/t/nacm-rule-to-restrict-access-to-an-element-in-list/4184 "2022-09-27T19:44:02Z")

</div>

Hello, I’ve a data model that is a list of elements, say below list access-list { key id; leaf id { type string; } leaf name { …

---

## [Compile YANG module using flag of -feature](https://dmap-community.ductus.global/t/compile-yang-module-using-flag-of-feature/4188)

<div class="topic-metadata">

**Author:** [@iyyappa](https://dmap-community.ductus.global/u/iyyappa)\
**Replies:** 10\
**Last updated:** [September 22, 2022, 9:54am UTC](https://dmap-community.ductus.global/t/compile-yang-module-using-flag-of-feature/4188 "2022-09-22T09:54:58Z")

</div>

Hello everyone, I have added the below code and am expecting to that slot should enable for chassis-platform. but it looks like it doesn’t work. Can you pls. help us resolve the issue. brocade-diagnostics.yang fe…

---

## [Hide a leaf-node in YANG](https://dmap-community.ductus.global/t/hide-a-leaf-node-in-yang/4193)

<div class="topic-metadata">

**Author:** [@shyna](https://dmap-community.ductus.global/u/shyna)\
**Replies:** 2\
**Last updated:** [September 12, 2022, 9:08am UTC](https://dmap-community.ductus.global/t/hide-a-leaf-node-in-yang/4193 "2022-09-12T09:08:12Z")

</div>

Hi All, I have a use case to hide leaf C from CLI. I cannot comment/remove code for this leaf. However, if any user wants to configure leaf C, he/she should be able to configure it. The only thing is this leaf should be…

---

## [\[NACM\] Restrict access of list element](https://dmap-community.ductus.global/t/nacm-restrict-access-of-list-element/1839)

<div class="topic-metadata">

**Author:** [@sszabolcs](https://dmap-community.ductus.global/u/sszabolcs)\
**Replies:** 4\
**Last updated:** [September 1, 2022, 9:12pm UTC](https://dmap-community.ductus.global/t/nacm-restrict-access-of-list-element/1839 "2022-09-01T21:12:51Z")

</div>

I would like to restrict the access of a list element if one of its non-key parameter has a specific value. Is this possible with NACM rules? I tried with the following aaa config and it wasn't worked for me. Example…

---

## [Not able to start confd in multiple phases and using different port](https://dmap-community.ductus.global/t/not-able-to-start-confd-in-multiple-phases-and-using-different-port/4157)

<div class="topic-metadata">

**Author:** [@biswajit](https://dmap-community.ductus.global/u/biswajit)\
**Replies:** 1\
**Last updated:** [August 12, 2022, 12:09pm UTC](https://dmap-community.ductus.global/t/not-able-to-start-confd-in-multiple-phases-and-using-different-port/4157 "2022-08-12T12:09:18Z")

</div>

Hi, I am trying to start the confd on phases as below: /usr/bin/confd --smp 2 -c /etc/confd1.conf --start-phase0 --ignore-initial-validation /usr/bin/confd --smp 2 -c /etc/confd1.conf --start-phase1 --ignore-initial-v…

---

## [Conventions for Documentation and Model Exposure](https://dmap-community.ductus.global/t/conventions-for-documentation-and-model-exposure/4154)

<div class="topic-metadata">

**Author:** [@beserb](https://dmap-community.ductus.global/u/beserb)\
**Replies:** 1\
**Last updated:** [August 9, 2022, 9:29am UTC](https://dmap-community.ductus.global/t/conventions-for-documentation-and-model-exposure/4154 "2022-08-09T09:29:04Z")

</div>

Hi all, I am fairly new to Netconf protocol and currently reading standards and trying to figure out conventions. I have 2 questions: 1- I have seen that some vendors provide a documentation describing possible Netconf…

---

## [Pre-Set Configuration in YANG](https://dmap-community.ductus.global/t/pre-set-configuration-in-yang/4144)

<div class="topic-metadata">

**Author:** [@kageja](https://dmap-community.ductus.global/u/kageja)\
**Replies:** 5\
**Last updated:** [August 8, 2022, 3:03pm UTC](https://dmap-community.ductus.global/t/pre-set-configuration-in-yang/4144 "2022-08-08T15:03:57Z")

</div>

Hello Folks, First of all, I want to talk about our usecases. We have some named preset configuration and whenever user change the preset configuration, other some configurations should be change to other preset value. …

---

## [Whether rfc8528 Yang Schema:mount is supported](https://dmap-community.ductus.global/t/whether-rfc8528-yang-schema-mount-is-supported/3264)

<div class="topic-metadata">

**Author:** [@Asky](https://dmap-community.ductus.global/u/Asky)\
**Replies:** 4\
**Last updated:** [July 2, 2022, 5:36pm UTC](https://dmap-community.ductus.global/t/whether-rfc8528-yang-schema-mount-is-supported/3264 "2022-07-02T17:36:28Z")

</div>

To support VRF, RFC8528 mount is needed, would you please clarify whether this schema is supported?

---

## [Tailf:cdb-oper question in 7.2.x/7.6.5](https://dmap-community.ductus.global/t/tailf-cdb-oper-question-in-7-2-x-7-6-5/4110)

<div class="topic-metadata">

**Author:** [@Logan](https://dmap-community.ductus.global/u/Logan)\
**Replies:** 5\
**Last updated:** [June 20, 2022, 5:59pm UTC](https://dmap-community.ductus.global/t/tailf-cdb-oper-question-in-7-2-x-7-6-5/4110 "2022-06-20T17:59:03Z")

</div>

tailf:cdb-oper { tailf:persistent true; } Based on my understanding from the user’s guide. The attribute above will not survive db backup and restore. Is there a workaround? Thanks. From User’s Guide: –cdb-backup F…

---

## [Need help to run pyang --tailf-sanitize to remove symlinks](https://dmap-community.ductus.global/t/need-help-to-run-pyang-tailf-sanitize-to-remove-symlinks/4106)

<div class="topic-metadata">

**Author:** [@unavarasala](https://dmap-community.ductus.global/u/unavarasala)\
**Replies:** 4\
**Last updated:** [June 20, 2022, 4:49pm UTC](https://dmap-community.ductus.global/t/need-help-to-run-pyang-tailf-sanitize-to-remove-symlinks/4106 "2022-06-20T16:49:47Z")

</div>

Hi Team, I’m trying to use pyang tool to replace symlinked data structures with actual ones in my yang files. I’m currently using pyang 2.4.0 version, but looks 2.4.0 doesn’t support --tailf-sanitize option. user:~/p…

---

## [Operational data tree structure](https://dmap-community.ductus.global/t/operational-data-tree-structure/4108)

<div class="topic-metadata">

**Author:** [@BharatAkiwate](https://dmap-community.ductus.global/u/BharatAkiwate)\
**Replies:** 3\
**Last updated:** [June 17, 2022, 3:19pm UTC](https://dmap-community.ductus.global/t/operational-data-tree-structure/4108 "2022-06-17T15:19:22Z")

</div>

How can we get tree structure of all the operational data(only config false) nodes defined in YANG model?

---

## [Hiding leaf value on show running-config](https://dmap-community.ductus.global/t/hiding-leaf-value-on-show-running-config/4105)

<div class="topic-metadata">

**Author:** [@head-f](https://dmap-community.ductus.global/u/head-f)\
**Replies:** 2\
**Last updated:** [June 10, 2022, 3:27pm UTC](https://dmap-community.ductus.global/t/hiding-leaf-value-on-show-running-config/4105 "2022-06-10T15:27:49Z")

</div>

Hello! This is my first time posting. I have a structure like this: container a { ...... list b { .............leaf c { .............} .............leaf d { ............} ......} } When I do “show running-config” I w…

---

## [Symlink removal without affecting source xpath and symlinked xpath](https://dmap-community.ductus.global/t/symlink-removal-without-affecting-source-xpath-and-symlinked-xpath/4101)

<div class="topic-metadata">

**Author:** [@unavarasala](https://dmap-community.ductus.global/u/unavarasala)\
**Replies:** 4\
**Last updated:** [June 10, 2022, 9:20am UTC](https://dmap-community.ductus.global/t/symlink-removal-without-affecting-source-xpath-and-symlinked-xpath/4101 "2022-06-10T09:20:52Z")

</div>

Hi Team, We a have yang model where all common data structures are kept in a yang file, let’s say common.yang with commonContainer as a top level container. from common.yang file module common { container commonCont…

---

## [Customizing Error Messages for a Leaf](https://dmap-community.ductus.global/t/customizing-error-messages-for-a-leaf/4088)

<div class="topic-metadata">

**Author:** [@grybydr](https://dmap-community.ductus.global/u/grybydr)\
**Replies:** 3\
**Last updated:** [June 3, 2022, 2:56pm UTC](https://dmap-community.ductus.global/t/customizing-error-messages-for-a-leaf/4088 "2022-06-03T14:56:04Z")

</div>

Hi, I have a netconf server with a yang model that contains several configurational data. To exemplify, I have 3 unique ip addresses (i.e ip address of dev1, ip address of dev2, ip address of dev3) each of them correspo…

---

## [Annotate leaf-list to add ordered-by user?](https://dmap-community.ductus.global/t/annotate-leaf-list-to-add-ordered-by-user/4093)

<div class="topic-metadata">

**Author:** [@colinmc](https://dmap-community.ductus.global/u/colinmc)\
**Replies:** 1\
**Last updated:** [May 28, 2022, 1:11pm UTC](https://dmap-community.ductus.global/t/annotate-leaf-list-to-add-ordered-by-user/4093 "2022-05-28T13:11:40Z")

</div>

I have a leaf-list I need to be in user order, but the yang I’m importing doesn’t have order specified. Can I use annotate-statement to add tailf:annotate-statement "leaf-list \[name='servers'\]" { ordered-by user; }…

---

## [Tailf:cli-incomplete-show-path doesn't work](https://dmap-community.ductus.global/t/tailf-cli-incomplete-show-path-doesnt-work/4089)

<div class="topic-metadata">

**Author:** [@Yoyo](https://dmap-community.ductus.global/u/Yoyo)\
**Replies:** 0\
**Last updated:** [May 25, 2022, 2:04pm UTC](https://dmap-community.ductus.global/t/tailf-cli-incomplete-show-path-doesnt-work/4089 "2022-05-25T14:04:10Z")

</div>

Following is my YANG code. Although I used cli-incomplete-show-path It gives the option for after feature\_show. Any idea what should I do? \*container feature\_show {\* \* tailf:info "Show feature informati…

---

## [Built-in function to validate the input against power of 2?](https://dmap-community.ductus.global/t/built-in-function-to-validate-the-input-against-power-of-2/4084)

<div class="topic-metadata">

**Author:** [@saswins](https://dmap-community.ductus.global/u/saswins)\
**Replies:** 2\
**Last updated:** [May 19, 2022, 6:16am UTC](https://dmap-community.ductus.global/t/built-in-function-to-validate-the-input-against-power-of-2/4084 "2022-05-19T06:16:14Z")

</div>

Is there YANG built-in function to validate the input against power of 2 which i can use in MUST condition ?

---

## [Is it possible to have an expression as validation point in YANG?](https://dmap-community.ductus.global/t/is-it-possible-to-have-an-expression-as-validation-point-in-yang/4070)

<div class="topic-metadata">

**Author:** [@saswins](https://dmap-community.ductus.global/u/saswins)\
**Replies:** 2\
**Last updated:** [May 16, 2022, 11:25pm UTC](https://dmap-community.ductus.global/t/is-it-possible-to-have-an-expression-as-validation-point-in-yang/4070 "2022-05-16T23:25:40Z")

</div>

I have an input and that can be only multiples of 2. Is there a way to do this in YANG itself or should I do the validation in the backend ? In other words, is there a way to do validation against some expression ?

---

## [Extra cli generated when adding new options to the existing config](https://dmap-community.ductus.global/t/extra-cli-generated-when-adding-new-options-to-the-existing-config/3832)

<div class="topic-metadata">

**Author:** [@shibzhan](https://dmap-community.ductus.global/u/shibzhan)\
**Replies:** 1\
**Last updated:** [May 11, 2022, 12:28am UTC](https://dmap-community.ductus.global/t/extra-cli-generated-when-adding-new-options-to-the-existing-config/3832 "2022-05-11T00:28:50Z")

</div>

For the following yang code, we found an extra cli generated when adding new options to the existing config. module generic-yang { namespace "https://tail-f.com/ns/example/generic-yang"; prefix "generic"; import…

---

## [Change imported leaf to mandatory?](https://dmap-community.ductus.global/t/change-imported-leaf-to-mandatory/4077)

<div class="topic-metadata">

**Author:** [@colinmc](https://dmap-community.ductus.global/u/colinmc)\
**Replies:** 1\
**Last updated:** [May 4, 2022, 11:16pm UTC](https://dmap-community.ductus.global/t/change-imported-leaf-to-mandatory/4077 "2022-05-04T23:16:35Z")

</div>

I’m “using” a container from another module, and without modifying the original module, I would like to make certain leafs within it mandatory in the current module. Is this possible? ex: module A { grouping A-gro…

---

## [Confdc more detail about enum conflicts](https://dmap-community.ductus.global/t/confdc-more-detail-about-enum-conflicts/4048)

<div class="topic-metadata">

**Author:** [@colinmc](https://dmap-community.ductus.global/u/colinmc)\
**Replies:** 9\
**Last updated:** [April 12, 2022, 2:33pm UTC](https://dmap-community.ductus.global/t/confdc-more-detail-about-enum-conflicts/4048 "2022-04-12T14:33:49Z")

</div>

Is there a command line option for confdc to give more detail about where the enum conflict is happening other than just the name? I’m getting Warning: the following symbols have been suppressed due to a conflict with …

---

## [How to hide a container when default value is set?](https://dmap-community.ductus.global/t/how-to-hide-a-container-when-default-value-is-set/2162)

<div class="topic-metadata">

**Author:** [@ruxob](https://dmap-community.ductus.global/u/ruxob)\
**Replies:** 6\
**Last updated:** [April 12, 2022, 9:56am UTC](https://dmap-community.ductus.global/t/how-to-hide-a-container-when-default-value-is-set/2162 "2022-04-12T09:56:53Z")

</div>

How to hide a container when default value is set ? container test { presence ""; leaf value { type uint16 { range "0..63"; } default "1"; …

---

## [Annotate enums in list with code-names](https://dmap-community.ductus.global/t/annotate-enums-in-list-with-code-names/4047)

<div class="topic-metadata">

**Author:** [@colinmc](https://dmap-community.ductus.global/u/colinmc)\
**Replies:** 4\
**Last updated:** [April 6, 2022, 5:22pm UTC](https://dmap-community.ductus.global/t/annotate-enums-in-list-with-code-names/4047 "2022-04-06T17:22:18Z")

</div>

I was reading up on --allow-enum-conflicts, while trying to resolve the following when emitting c header files: Warning: the following symbols have been suppressed due to a conflict with an enum or bit with the same m…

---

## [Create actionpoint to rpc](https://dmap-community.ductus.global/t/create-actionpoint-to-rpc/4042)

<div class="topic-metadata">

**Author:** [@Biswajit84](https://dmap-community.ductus.global/u/Biswajit84)\
**Replies:** 1\
**Last updated:** [April 4, 2022, 9:51pm UTC](https://dmap-community.ductus.global/t/create-actionpoint-to-rpc/4042 "2022-04-04T21:51:00Z")

</div>

Hi I have rpc as below: module: o-ran-supervision rpcs: +---x supervision-watchdog-reset +---w input | +---w supervision-notification-interval? | +---w guard-timer-overhead? …

---

## [Load merge fail with 'unknown command'](https://dmap-community.ductus.global/t/load-merge-fail-with-unknown-command/4033)

<div class="topic-metadata">

**Author:** [@tatyakadam](https://dmap-community.ductus.global/u/tatyakadam)\
**Replies:** 3\
**Last updated:** [March 31, 2022, 2:20pm UTC](https://dmap-community.ductus.global/t/load-merge-fail-with-unknown-command/4033 "2022-03-31T14:20:19Z")

</div>

Configuration (config.cli) after saving config (save config.cli): profiles remote-logging remoteP site pw-hng-site server-type rsyslog host myHost port 88 protocol udp ! ! ! system timezone …

---

## [Is it possible to load multiple versions of a yang model simultaneously into confd](https://dmap-community.ductus.global/t/is-it-possible-to-load-multiple-versions-of-a-yang-model-simultaneously-into-confd/513)

<div class="topic-metadata">

**Author:** [@ascesh1](https://dmap-community.ductus.global/u/ascesh1)\
**Replies:** 8\
**Last updated:** [March 22, 2022, 4:27pm UTC](https://dmap-community.ductus.global/t/is-it-possible-to-load-multiple-versions-of-a-yang-model-simultaneously-into-confd/513 "2022-03-22T16:27:16Z")

</div>

I wish to support old and new versions of software towards confd's southbound interface , so wondering if anyone has tried this before ... and how would the c-api DP api's be able to differntiate the calls of say get,get…

---

## [Multiple annotate files?](https://dmap-community.ductus.global/t/multiple-annotate-files/4032)

<div class="topic-metadata">

**Author:** [@colinmc](https://dmap-community.ductus.global/u/colinmc)\
**Replies:** 2\
**Last updated:** [March 22, 2022, 2:45pm UTC](https://dmap-community.ductus.global/t/multiple-annotate-files/4032 "2022-03-22T14:45:45Z")

</div>

Is there a way to use multiple files with annotate, or do I need to put all the tailf:annotate entries for a module in the same file? When I used to use “augment” to augment a main module, I could have an ann file for e…

---

## [Tailf:annotate xpath printout with prefixes?](https://dmap-community.ductus.global/t/tailf-annotate-xpath-printout-with-prefixes/4030)

<div class="topic-metadata">

**Author:** [@colinmc](https://dmap-community.ductus.global/u/colinmc)\
**Replies:** 5\
**Last updated:** [March 21, 2022, 6:59pm UTC](https://dmap-community.ductus.global/t/tailf-annotate-xpath-printout-with-prefixes/4030 "2022-03-21T18:59:47Z")

</div>

I’m using tailf:annotate, with multiple namespaces and modules. The first module “uses” a group from the 2nd. Both modules are listed in my import section with prefixes. In my annotate line, I use the first module’s p…

---

## [Enum typedef customizable ranges?](https://dmap-community.ductus.global/t/enum-typedef-customizable-ranges/4018)

<div class="topic-metadata">

**Author:** [@colinmc](https://dmap-community.ductus.global/u/colinmc)\
**Replies:** 2\
**Last updated:** [March 17, 2022, 10:06pm UTC](https://dmap-community.ductus.global/t/enum-typedef-customizable-ranges/4018 "2022-03-17T22:06:59Z")

</div>

I would like to define an enum, but re-use it for multiple similar leafs that have restrictions on how many of the values are valid. Is this possible? example: enum UP/DOWN/TESTING, each having a unique value. One lea…

---

## [Must remainder check](https://dmap-community.ductus.global/t/must-remainder-check/4012)

<div class="topic-metadata">

**Author:** [@colinmc](https://dmap-community.ductus.global/u/colinmc)\
**Replies:** 3\
**Last updated:** [March 4, 2022, 11:47am UTC](https://dmap-community.ductus.global/t/must-remainder-check/4012 "2022-03-04T11:47:40Z")

</div>

is there a way to ensure the leaf below is not only in the specified range, but is evenly divisible by 50? Something like: leaf center-frequency { type uint32 { range "71000 .. 999000"; …

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

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