aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/onos/etc/samples/linkGraph.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/onos/etc/samples/linkGraph.cfg')
-rw-r--r--framework/src/onos/etc/samples/linkGraph.cfg27
1 files changed, 27 insertions, 0 deletions
diff --git a/framework/src/onos/etc/samples/linkGraph.cfg b/framework/src/onos/etc/samples/linkGraph.cfg
new file mode 100644
index 00000000..41ce5bdc
--- /dev/null
+++ b/framework/src/onos/etc/samples/linkGraph.cfg
@@ -0,0 +1,27 @@
+# NullLinkProvider topology description (config file).
+#
+# Dot-style topology graph. Each controller's topology begins with
+#
+# graph <node ID>, followed by a list of links between braces.
+#
+# The links are either bidirectional (--) or directed (->). The directed
+# edges are used to connect together Null devices of different controllers.
+# The endpoint has the format:
+#
+# devID:port:NodeId
+#
+# The NodeId is only added if the destination is another node's device.
+#
+graph 192.168.56.20 {
+ 0:0 -- 1:0
+ 1:1 -> 0:0:192.168.56.30
+ 1:2 -- 2:0
+ 2:1 -> 1:0:192.168.56.30
+}
+graph 192.168.56.30 {
+ 0:0 -> 1:1:192.168.56.20
+ 0:1 -- 1:1
+ 1:0 -> 2:1:192.168.56.20
+ 1:2 -- 2:0
+}
+# Bugs: Comments cannot be appended to a line to be read.