Skip to content

Commit

Permalink
Format all json files (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
stano45 authored Jun 3, 2024
1 parent 882fbe0 commit 9e00b35
Show file tree
Hide file tree
Showing 48 changed files with 1,344 additions and 416 deletions.
24 changes: 18 additions & 6 deletions exercises/basic/pod-topo/s2-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
"table": "MyIngress.ipv4_lpm",
"default_action": true,
"action_name": "MyIngress.drop",
"action_params": { }
"action_params": {}
},
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.1.1", 32]
"hdr.ipv4.dstAddr": [
"10.0.1.1",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -23,7 +26,10 @@
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.2.2", 32]
"hdr.ipv4.dstAddr": [
"10.0.2.2",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -34,7 +40,10 @@
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.3.3", 32]
"hdr.ipv4.dstAddr": [
"10.0.3.3",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -45,7 +54,10 @@
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.4.4", 32]
"hdr.ipv4.dstAddr": [
"10.0.4.4",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -54,4 +66,4 @@
}
}
]
}
}
24 changes: 18 additions & 6 deletions exercises/basic/pod-topo/s3-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
"table": "MyIngress.ipv4_lpm",
"default_action": true,
"action_name": "MyIngress.drop",
"action_params": { }
"action_params": {}
},
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.1.1", 32]
"hdr.ipv4.dstAddr": [
"10.0.1.1",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -23,7 +26,10 @@
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.2.2", 32]
"hdr.ipv4.dstAddr": [
"10.0.2.2",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -34,7 +40,10 @@
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.3.3", 32]
"hdr.ipv4.dstAddr": [
"10.0.3.3",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -45,7 +54,10 @@
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.4.4", 32]
"hdr.ipv4.dstAddr": [
"10.0.4.4",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -54,4 +66,4 @@
}
}
]
}
}
24 changes: 18 additions & 6 deletions exercises/basic/pod-topo/s4-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
"table": "MyIngress.ipv4_lpm",
"default_action": true,
"action_name": "MyIngress.drop",
"action_params": { }
"action_params": {}
},
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.1.1", 32]
"hdr.ipv4.dstAddr": [
"10.0.1.1",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -23,7 +26,10 @@
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.2.2", 32]
"hdr.ipv4.dstAddr": [
"10.0.2.2",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -34,7 +40,10 @@
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.3.3", 32]
"hdr.ipv4.dstAddr": [
"10.0.3.3",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -45,7 +54,10 @@
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.4.4", 32]
"hdr.ipv4.dstAddr": [
"10.0.4.4",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -54,4 +66,4 @@
}
}
]
}
}
96 changes: 77 additions & 19 deletions exercises/basic/pod-topo/topology.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,84 @@
{
"hosts": {
"h1": {"ip": "10.0.1.1/24", "mac": "08:00:00:00:01:11",
"commands":["route add default gw 10.0.1.10 dev eth0",
"arp -i eth0 -s 10.0.1.10 08:00:00:00:01:00"]},
"h2": {"ip": "10.0.2.2/24", "mac": "08:00:00:00:02:22",
"commands":["route add default gw 10.0.2.20 dev eth0",
"arp -i eth0 -s 10.0.2.20 08:00:00:00:02:00"]},
"h3": {"ip": "10.0.3.3/24", "mac": "08:00:00:00:03:33",
"commands":["route add default gw 10.0.3.30 dev eth0",
"arp -i eth0 -s 10.0.3.30 08:00:00:00:03:00"]},
"h4": {"ip": "10.0.4.4/24", "mac": "08:00:00:00:04:44",
"commands":["route add default gw 10.0.4.40 dev eth0",
"arp -i eth0 -s 10.0.4.40 08:00:00:00:04:00"]}
"h1": {
"ip": "10.0.1.1/24",
"mac": "08:00:00:00:01:11",
"commands": [
"route add default gw 10.0.1.10 dev eth0",
"arp -i eth0 -s 10.0.1.10 08:00:00:00:01:00"
]
},
"h2": {
"ip": "10.0.2.2/24",
"mac": "08:00:00:00:02:22",
"commands": [
"route add default gw 10.0.2.20 dev eth0",
"arp -i eth0 -s 10.0.2.20 08:00:00:00:02:00"
]
},
"h3": {
"ip": "10.0.3.3/24",
"mac": "08:00:00:00:03:33",
"commands": [
"route add default gw 10.0.3.30 dev eth0",
"arp -i eth0 -s 10.0.3.30 08:00:00:00:03:00"
]
},
"h4": {
"ip": "10.0.4.4/24",
"mac": "08:00:00:00:04:44",
"commands": [
"route add default gw 10.0.4.40 dev eth0",
"arp -i eth0 -s 10.0.4.40 08:00:00:00:04:00"
]
}
},
"switches": {
"s1": { "runtime_json" : "pod-topo/s1-runtime.json" },
"s2": { "runtime_json" : "pod-topo/s2-runtime.json" },
"s3": { "runtime_json" : "pod-topo/s3-runtime.json" },
"s4": { "runtime_json" : "pod-topo/s4-runtime.json" }
"s1": {
"runtime_json": "pod-topo/s1-runtime.json"
},
"s2": {
"runtime_json": "pod-topo/s2-runtime.json"
},
"s3": {
"runtime_json": "pod-topo/s3-runtime.json"
},
"s4": {
"runtime_json": "pod-topo/s4-runtime.json"
}
},
"links": [
["h1", "s1-p1"], ["h2", "s1-p2"], ["s1-p3", "s3-p1"], ["s1-p4", "s4-p2"],
["h3", "s2-p1"], ["h4", "s2-p2"], ["s2-p3", "s4-p1"], ["s2-p4", "s3-p2"]
[
"h1",
"s1-p1"
],
[
"h2",
"s1-p2"
],
[
"s1-p3",
"s3-p1"
],
[
"s1-p4",
"s4-p2"
],
[
"h3",
"s2-p1"
],
[
"h4",
"s2-p2"
],
[
"s2-p3",
"s4-p1"
],
[
"s2-p4",
"s3-p2"
]
]
}
}
19 changes: 14 additions & 5 deletions exercises/basic/triangle-topo/s1-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
"table": "MyIngress.ipv4_lpm",
"default_action": true,
"action_name": "MyIngress.drop",
"action_params": { }
"action_params": {}
},
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.1.1", 32]
"hdr.ipv4.dstAddr": [
"10.0.1.1",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -23,7 +26,10 @@
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.2.2", 32]
"hdr.ipv4.dstAddr": [
"10.0.2.2",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -34,7 +40,10 @@
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.3.3", 32]
"hdr.ipv4.dstAddr": [
"10.0.3.3",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -43,4 +52,4 @@
}
}
]
}
}
19 changes: 14 additions & 5 deletions exercises/basic/triangle-topo/s2-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
"table": "MyIngress.ipv4_lpm",
"default_action": true,
"action_name": "MyIngress.drop",
"action_params": { }
"action_params": {}
},
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.1.1", 32]
"hdr.ipv4.dstAddr": [
"10.0.1.1",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -23,7 +26,10 @@
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.2.2", 32]
"hdr.ipv4.dstAddr": [
"10.0.2.2",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -34,7 +40,10 @@
{
"table": "MyIngress.ipv4_lpm",
"match": {
"hdr.ipv4.dstAddr": ["10.0.3.3", 32]
"hdr.ipv4.dstAddr": [
"10.0.3.3",
32
]
},
"action_name": "MyIngress.ipv4_forward",
"action_params": {
Expand All @@ -43,4 +52,4 @@
}
}
]
}
}
Loading

0 comments on commit 9e00b35

Please sign in to comment.