Subject: [netmod] YANG header clause order

From: Andy Bierman <[email-masked]>
Date: Sat, 30 Aug 2008 09:28:29 -0700

Hi,

After some implementation experience, I changed my
mind about the header clause order.  There isn't
any reason to force any order for the 4 individual header statement
types.  I like the idea of keeping the various statement
types together, instead of mixing them all together.

Suggested ABNF change:

OLD:

module-stmt            = optsep module-keyword sep identifier-arg-str
                          optsep
                          "{" stmtsep
                              module-header-stmts
                              linkage-stmts
                              meta-stmts
                              revision-stmts
                              body-stmts
                          "}" optsep

submodule-stmt         = optsep submodule-keyword sep identifier-arg-str
                          optsep
                          "{" stmtsep
                              submodule-header-stmts
                              linkage-stmts
                              meta-stmts
                              revision-stmts
                              body-stmts
                          "}" optsep

NEW:

module-stmt            = optsep module-keyword sep identifier-arg-str
                          optsep
                          "{" stmtsep
                              module-header-stmts
                              cmn-header-stmts
                              body-stmts
                          "}" optsep

submodule-stmt         = optsep submodule-keyword sep identifier-arg-str
                          optsep
                          "{" stmtsep
                              submodule-header-stmts
                              cmn-header-stmts
                              body-stmts
                          "}" optsep

cmn-header-stmts       = ;; these stmts can appear in any order
                          [linkage-stmts]
                          [meta-stmts]
                          [revision-stmts]

Andy

_______________________________________________
netmod mailing list
[email-masked]
https://www.ietf.org/mailman/listinfo/netmod