Issue an info message when a config=true list does not have keys 98/86598/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 28 Dec 2019 10:09:37 +0000 (11:09 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 28 Dec 2019 10:12:34 +0000 (11:12 +0100)
commite9061a5ad89661154190aa7703b1de95a5fb528e
tree4dedbf08dd76d885196a0aa563855276f1f29108
parentf9381365c6b777561c15a316c7b37511fe81e4be
Issue an info message when a config=true list does not have keys

RFC7950 section 7.8.2 places an explicit requirement that lists
representing configuration (i.e. config=true) must define at least
one key.

This restriction does make sense in contexts like NETCONF, but is
generally not needed in OpenDaylight. Since it hurts model
interoperability, add a message pointing this violation out.

JIRA: YANGTOOLS-957
Change-Id: If29078e51aa1ec55fa070f263755f15147ad835f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/list/ListEffectiveStatementImpl.java