Do not issue duplicate warnings for lists missing keys 14/89014/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 9 Apr 2020 16:41:16 +0000 (18:41 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 11 Apr 2020 02:51:49 +0000 (04:51 +0200)
commitafa49e22a55f6ab4563154aa05ad0ed94e15619a
tree32800e874e996de80266f346bdc64a06650eece9
parent5d9806b176ed034fadd628fbfd361a2d77cbb1cc
Do not issue duplicate warnings for lists missing keys

We currently are issuing the config list warning for each instantiated
site, which ends up flooding our logs, as BGPCEP takes advantage of our
lenience -- leading to 3400+ warnings.

Make sure we flag each original list only once, suppressing other
instances of the violation. This presumably will provide enough guidance
while keeping the noise to a sane amount (~200 warnings).

JIRA: YANGTOOLS-1090
Change-Id: I2488ad7144c1827f7689d496669e4c97b62b0570
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 1fb451b2a874cf198195895be035478cd9aa1635)
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/reactor/RFC7950Reactors.java
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/list/AbstractListStatementSupport.java
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/list/ConfigListWarningNamespace.java [new file with mode: 0644]