yang - add some statement to the container
diff --git a/src/parser_yang.c b/src/parser_yang.c
index db4ce4a..f1ed909 100644
--- a/src/parser_yang.c
+++ b/src/parser_yang.c
@@ -197,6 +197,9 @@
case WHEN_KEYWORD:
ret = yang_check_string(module, &((struct lys_when *) node)->dsc, "description", "when" , value, line);
break;
+ case CONTAINER_KEYWORD:
+ ret = yang_check_string(module, &((struct lys_node_container *) node)->dsc, "description", "container", value, line);
+ break;
}
}
return ret;
@@ -226,6 +229,9 @@
case WHEN_KEYWORD:
ret = yang_check_string(module, &((struct lys_when *) node)->ref, "reference", "when", value, line);
break;
+ case CONTAINER_KEYWORD:
+ ret = yang_check_string(module, &((struct lys_node_container *) node)->ref, "reference", "container", value, line);
+ break;
}
}
return ret;
@@ -346,9 +352,11 @@
case FEATURE_KEYWORD:
retval = yang_check_flags(&((struct lys_feature *) node)->flags, LYS_STATUS_MASK, "status", "feature", value, line);
break;
- case IDENTITY_KEYWORD:
+ case IDENTITY_KEYWORD:
retval = yang_check_flags(&((struct lys_ident *) node)->flags, LYS_STATUS_MASK, "status", "identity", value, line);
break;
+ case CONTAINER_KEYWORD:
+ retval = yang_check_flags(&((struct lys_node_container *) node)->flags, LYS_STATUS_MASK, "status", "container", value, line);
}
return retval;
}