Issue an info message when a config=true list does not have keys 00/86600/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:35:09 +0000 (11:35 +0100)
commit27e379b2b16e8ea3149dfde2c4226fd0a883592f
treedcf5c33fb0c90e0a5d1818ecb37f13c3c5966fd5
parent9eab935cf401aa381a21febbc71f63579cd438cc
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>
(cherry picked from commit e9061a5ad89661154190aa7703b1de95a5fb528e)
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/list/ListEffectiveStatementImpl.java