aboutsummaryrefslogtreecommitdiff
path: root/nets/doc-example.json
diff options
context:
space:
mode:
authorgithub-classroom[bot] <66690702+github-classroom[bot]@users.noreply.github.com>2023-09-30 22:33:47 +0000
committerGitHub <noreply@github.com>2023-09-30 22:33:47 +0000
commit18ff290bd2545a5a681d047a70576d694a9ab20b (patch)
treec953e5d610cef5afd34fc36f11148552ebbe9dff /nets/doc-example.json
Initial commit
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"
+ ]
+ }
+ ]
+}