commit | 3a454444d09d8f408e8d40db865af6f1c9c9b131 | [log] [tgz] |
---|---|---|
author | David Glantz <david.glantz@windstream.com> | Wed Jan 26 14:39:56 2022 -0600 |
committer | Pier Luigi Ventre <pier@opennetworking.org> | Tue Feb 01 21:08:42 2022 +0000 |
tree | b2668da3e48c1f0d59cb33c2c50f37b8d74ea920 | |
parent | 81a2cb9c49ebbaa81e8a47d576e285385329bca8 [diff] |
Fix to notify the link provider service form netcfglinkprovider when link netcfg is added Change-Id: Ifc34e0c8789d131c8459ef75bde2a3a5c6ecf19b (cherry picked from commit 2e70e23a720d42ed839bd7bf5b5c02a2d3a62f7e)
diff --git a/providers/netcfglinks/src/main/java/org/onosproject/provider/netcfglinks/NetworkConfigLinksProvider.java b/providers/netcfglinks/src/main/java/org/onosproject/provider/netcfglinks/NetworkConfigLinksProvider.java index 30608e4..d908681 100644 --- a/providers/netcfglinks/src/main/java/org/onosproject/provider/netcfglinks/NetworkConfigLinksProvider.java +++ b/providers/netcfglinks/src/main/java/org/onosproject/provider/netcfglinks/NetworkConfigLinksProvider.java
@@ -519,7 +519,11 @@ private class InternalConfigListener implements NetworkConfigListener { private void addLink(LinkKey linkKey) { + DefaultLinkDescription linkDescription = + new DefaultLinkDescription(linkKey.src(), linkKey.dst(), + Link.Type.DIRECT); configuredLinks.add(linkKey); + providerService.linkDetected(linkDescription); } private void removeLink(LinkKey linkKey) {