diff options
Diffstat (limited to 'nets')
-rw-r--r-- | nets/doc-example.json | 48 | ||||
-rw-r--r-- | nets/linear-r1h2.json | 34 | ||||
-rw-r--r-- | nets/linear-r1h4.json | 44 | ||||
-rw-r--r-- | nets/linear-r2h2.json | 43 | ||||
-rw-r--r-- | nets/linear-r3h2.json | 55 | ||||
-rw-r--r-- | nets/loop.json | 83 |
6 files changed, 307 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" + ] + } + ] +} diff --git a/nets/linear-r1h2.json b/nets/linear-r1h2.json new file mode 100644 index 0000000..9d14559 --- /dev/null +++ b/nets/linear-r1h2.json @@ -0,0 +1,34 @@ +{ + "nodes": [ + { + "name": "r1", + "type": "router" + }, + { + "name": "h1", + "type": "host" + }, + { + "name": "h2", + "type": "host" + } + ], + "networks": [ + { + "name": "r1-left", + "advertise-routes-from": [], + "links": [ + "h1", + "r1" + ] + }, + { + "name": "r1-right", + "advertise-routes-from": [], + "links": [ + "r1", + "h2" + ] + } + ] +} diff --git a/nets/linear-r1h4.json b/nets/linear-r1h4.json new file mode 100644 index 0000000..d1204b0 --- /dev/null +++ b/nets/linear-r1h4.json @@ -0,0 +1,44 @@ +{ + "nodes": [ + { + "name": "r1", + "type": "router" + }, + { + "name": "h1", + "type": "host" + }, + { + "name": "h2", + "type": "host" + }, + { + "name": "h3", + "type": "host" + }, + { + "name": "h4", + "type": "host" + } + ], + "networks": [ + { + "name": "r1-left", + "advertise-routes-from": [], + "links": [ + "h1", + "h2", + "r1" + ] + }, + { + "name": "r1-right", + "advertise-routes-from": [], + "links": [ + "r1", + "h3", + "h4" + ] + } + ] +} diff --git a/nets/linear-r2h2.json b/nets/linear-r2h2.json new file mode 100644 index 0000000..b82e68d --- /dev/null +++ b/nets/linear-r2h2.json @@ -0,0 +1,43 @@ +{ + "nodes": [ + { + "name": "r1", + "type": "router" + }, + { + "name": "r2", + "type": "router" + }, + { + "name": "h1", + "type": "host" + }, + { + "name": "h2", + "type": "host" + } + ], + "networks": [ + { + "name": "r1-hosts", + "links": [ + "h1", + "r1" + ] + }, + { + "name": "r1-r2", + "links": [ + "r1", + "r2" + ] + }, + { + "name": "r2-hosts", + "links": [ + "r2", + "h2" + ] + } + ] +} diff --git a/nets/linear-r3h2.json b/nets/linear-r3h2.json new file mode 100644 index 0000000..43ba8c4 --- /dev/null +++ b/nets/linear-r3h2.json @@ -0,0 +1,55 @@ +{ + "nodes": [ + { + "name": "r1", + "type": "router" + }, + { + "name": "r2", + "type": "router" + }, + { + "name": "r3", + "type": "router" + }, + { + "name": "h1", + "type": "host" + }, + { + "name": "h2", + "type": "host" + } + ], + "networks": [ + { + "name": "r1-hosts", + "links": [ + "h1", + "r1" + ] + }, + { + "name": "r1-r2", + "links": [ + "r1", + "r2" + ] + }, + { + "name": "r2-r3", + "links": [ + "r2", + "r3" + ] + }, + + { + "name": "r3-hosts", + "links": [ + "r3", + "h2" + ] + } + ] +} diff --git a/nets/loop.json b/nets/loop.json new file mode 100644 index 0000000..05d0d77 --- /dev/null +++ b/nets/loop.json @@ -0,0 +1,83 @@ +{ + "nodes": [ + { + "name": "r1", + "type": "router" + }, + { + "name": "r2", + "type": "router" + }, + { + "name": "r3", + "type": "router" + }, + { + "name": "r4", + "type": "router" + }, + { + "name": "r5", + "type": "router" + }, + { + "name": "h1", + "type": "host" + }, + { + "name": "h2", + "type": "host" + } + ], + "networks": [ + { + "name": "r1-hosts", + "links": [ + "h1", + "r1" + ] + }, + { + "name": "r1-r2", + "links": [ + "r1", + "r2" + ] + }, + { + "name": "r2-r3", + "links": [ + "r2", + "r3" + ] + }, + { + "name": "r1-r4", + "links": [ + "r1", + "r4" + ] + }, + { + "name": "r4-r5", + "links": [ + "r4", + "r5" + ] + }, + { + "name": "r5-r3", + "links": [ + "r5", + "r3" + ] + }, + { + "name": "r3-hosts", + "links": [ + "r3", + "h2" + ] + } + ] +} |