commit | 23022f7bf05befd278878eaeae9dae3658863c48 | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Fri Oct 17 14:50:00 2014 -0700 |
committer | alshabib <alshabibi.ali@gmail.com> | Fri Oct 17 14:50:00 2014 -0700 |
tree | 531b3b7d43f0a58db93f88314008eafc2047d5b9 | |
parent | acd918362c5fc09c3149e1d80ba971c97bb88ff0 [diff] |
fix provider loading and unloading issue Change-Id: If10ec427dc7be6b4609eb1ac4955f228274e6742
diff --git a/core/api/src/main/java/org/onlab/onos/net/provider/AbstractProviderRegistry.java b/core/api/src/main/java/org/onlab/onos/net/provider/AbstractProviderRegistry.java index d59bfd2..35aed74 100644 --- a/core/api/src/main/java/org/onlab/onos/net/provider/AbstractProviderRegistry.java +++ b/core/api/src/main/java/org/onlab/onos/net/provider/AbstractProviderRegistry.java
@@ -62,6 +62,9 @@ ((AbstractProviderService) service).invalidate(); services.remove(provider.id()); providers.remove(provider.id()); + if (!provider.id().isAncillary()) { + providersByScheme.remove(provider.id().scheme()); + } } }