[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[YANG] YANG syntax
Hi,
here are my comments and questions on YANG syntax and its description in
the -02 draft:
- An unquoted + is allowed as a string parameter. I think this is too
fragile as + can appear in numbers and also as a concatenation operator.
I suggest to require isolated + to be quoted.
- The draft should probably clearly specify that recursive containment
is not allowed.
- Can a submodule use definitions from its parent module - automatically
or via "include"?
- Production rules for all statements except module and submodule are
labelled "<keyword>-stmt". For the sake of consistency, the rules for
module and submodule should be renamed to module-stmt and
submodule-stmt.
- Is it necessary to keep meta-stmts and submodule-meta-stmts distinct?
Their productions are identical.
- float-value requires a sign ("+/"-") in the exponent, pyang allows
floats like 6.022E23. Maybe the sign should be made optional?
- The "boolean" type in W3C and RELAX NG datatype libraries allow as
values either true/false or 1/0. Would it be a problem to allow this in
YANG, too?
- I don't really understand the keyref statement and its path
expression. An example would be helpful.
- bit-stmt - all substatements are optional but braces are required.
- presence keyword is missing in Table 30 in App. B.
- unique-arg should have "1*SP" instead of "1*sp"
- descendant-schema-nodeid should be an alternative?
descendant-schema-nodeid
= node-identifier /
absolute-schema-nodeid
- What is the role of unknown-statement in stmtsep and stmtend?
Lada
--
Ladislav Lhotka, CESNET
PGP Key ID: E74E8C0C
_______________________________________________
YANG mailing list
YANG at ietf.org
https://www.ietf.org/mailman/listinfo/yang