commit | aebf557d1a6a6149d15caa9952bc80853280c9bb | [log] [tgz] |
---|---|---|
author | Vidyashree Rama <vidyashree.rama@huawei.com> | Tue Jun 05 10:48:51 2018 +0530 |
committer | GauravAgrawal-Huawei <gauravjbp3ster@gmail.com> | Tue Jun 05 05:27:03 2018 +0000 |
tree | 3f0640cd7ad05c988867eb36c4877d9777901188 | |
parent | afdcd1c28c6f36f7a409fe82ddcb773fc48ea45e [diff] |
Allow multiple registrator to register classes Change-Id: I35a56b889c45b936bb022a9639702fda21619258
diff --git a/runtime/src/main/java/org/onosproject/yang/runtime/impl/DefaultYangModelRegistry.java b/runtime/src/main/java/org/onosproject/yang/runtime/impl/DefaultYangModelRegistry.java index 09cc1e0..b58986e 100644 --- a/runtime/src/main/java/org/onosproject/yang/runtime/impl/DefaultYangModelRegistry.java +++ b/runtime/src/main/java/org/onosproject/yang/runtime/impl/DefaultYangModelRegistry.java
@@ -150,8 +150,7 @@ if (!modelIdStore.containsKey(id)) { updateRegClassStore(param); modelIdStore.put(id, model); - } else if ((info != null) && - (!registerClassStore.containsValue(info.getModuleClass()))) { + } else if (info != null) { updateRegClassStore(param); } else { throw new IllegalArgumentException("ModelId " + id + " already exist");