ONOS-3460 - Link provider that enforces strict configuration

This provider uses the "links" configuration of the network
config and only allows discovery of links that are in
the config.

Refactoring will be done in a subsequent patch set - the DiscoveryContext and
LinkDiscovery classes are duplicates, they need to be refactored so the
LLDP provider and the Network Config provider can share them.

Change-Id: I4de12fc1c4ffa05e3cac7767b8a31f48ba379f6c
diff --git a/web/gui/src/main/webapp/app/view/topo/topoModel.js b/web/gui/src/main/webapp/app/view/topo/topoModel.js
index 282a066..ed9eeb1 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoModel.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoModel.js
@@ -198,6 +198,11 @@
                     t = lnk.fromTarget;
                 return (s && s.type) || (t && t.type) || defaultLinkType;
             },
+            expected: function () {
+                var s = lnk.fromSource,
+                    t = lnk.fromTarget;
+                return (s && s.expected) && (t && t.expected);
+            },
             online: function () {
                 var s = lnk.fromSource,
                     t = lnk.fromTarget,