aboutsummaryrefslogtreecommitdiff
path: root/nets/doc-example.json
diff options
context:
space:
mode:
Diffstat (limited to 'nets/doc-example.json')
-rw-r--r--nets/doc-example.json48
1 files changed, 48 insertions, 0 deletions
diff --git a/nets/doc-example.json b/nets/doc-example.json
new file mode 100644
index 0000000..a953d98
--- /dev/null
+++ b/nets/doc-example.json
@@ -0,0 +1,48 @@
+{
+ "nodes": [
+ {
+ "name": "r1",
+ "type": "router"
+ },
+ {
+ "name": "r2",
+ "type": "router"
+ },
+ {
+ "name": "h1",
+ "type": "host"
+ },
+ {
+ "name": "h2",
+ "type": "host"
+ },
+ {
+ "name": "h3",
+ "type": "host"
+ }
+ ],
+ "networks": [
+ {
+ "name": "r1-hosts",
+ "links": [
+ "h1",
+ "r1"
+ ]
+ },
+ {
+ "name": "r1-r2",
+ "links": [
+ "r1",
+ "r2"
+ ]
+ },
+ {
+ "name": "r2-hosts",
+ "links": [
+ "r2",
+ "h2",
+ "h3"
+ ]
+ }
+ ]
+}