commit | f0bc71700bf6e7448a1adfa6613df38e22fc8004 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Jun 09 13:57:05 2015 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Jun 09 13:57:05 2015 +0200 |
tree | 61a146693cb112c0629c0823576624cd05a6e62d | |
parent | 00b7cfe34f9045d8370b53c12e2cd7cfbf63750c [diff] |
yang printer: NEW: container presence
diff --git a/src/printer/yang.c b/src/printer/yang.c index 8bebbfa..ee2ae3d 100644 --- a/src/printer/yang.c +++ b/src/printer/yang.c
@@ -268,6 +268,9 @@ fprintf(f, "%*scontainer %s {\n", LEVEL, INDENT, mnode->name); level++; + if (cont->presence != NULL) { + yang_print_text(f, level, "presence", cont->presence); + } for (i = 0; i < cont->must_size; i++) { yang_print_must(f, level, &cont->must[i]);