Skip to content

Commit

Permalink
feat: complete v2 sims
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu committed Nov 22, 2024
1 parent d1a832b commit ad060fe
Show file tree
Hide file tree
Showing 4 changed files with 723 additions and 0 deletions.
169 changes: 169 additions & 0 deletions netsim/sims/integration_v2/relay.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
{
"name": "intg_iroh_relay",
"cases": [
{
"name": "1_to_1",
"description": "",
"visualize": true,
"nodes": [
{
"name": "1_r",
"count": 1,
"cmd": "./bins/iroh-relay --dev --config-path ./relay.cfg",
"type": "public",
"wait": 2,
"connect": {
"strategy": "none"
}
},
{
"name": "i_srv",
"count": 1,
"cmd": "./bins/iroh-transfer provide --size=1M --relay-url=\"http://10.0.0.1:3340\"",
"type": "public",
"wait": 10,
"connect": {
"strategy": "none"
},
"param_parser": "iroh_ticket_v2"
},
{
"name": "i_get",
"count": 1,
"cmd": "time ./bins/iroh-transfer fetch --ticket %s --relay-url=\"http://10.0.0.1:3340\"",
"type": "public",
"connect": {
"strategy": "params",
"node": "i_srv"
},
"process": "short",
"parser": "iroh_1mb",
"integration": "magic_iroh_client"
}
]
},
{
"name": "1_to_1_NAT_provide",
"description": "",
"visualize": true,
"nodes": [
{
"name": "1_r",
"count": 1,
"cmd": "./bins/iroh-relay --dev --config-path ./relay.cfg",
"type": "public",
"wait": 2,
"connect": {
"strategy": "none"
}
},
{
"name": "i_srv",
"count": 1,
"cmd": "./bins/iroh-transfer provide --size=1M --relay-url=\"http://10.0.0.1:3340\"",
"type": "nat",
"wait": 10,
"connect": {
"strategy": "none"
},
"param_parser": "iroh_ticket_v2"
},
{
"name": "i_get",
"count": 1,
"cmd": "time ./bins/iroh-transfer fetch --ticket %s --relay-url=\"http://10.0.0.1:3340\"",
"type": "public",
"connect": {
"strategy": "params",
"node": "i_srv"
},
"process": "short",
"parser": "iroh_1mb",
"integration": "magic_iroh_client"
}
]
},
{
"name": "1_to_1_NAT_get",
"description": "",
"visualize": true,
"nodes": [
{
"name": "1_r",
"count": 1,
"cmd": "./bins/iroh-relay --dev --config-path ./relay.cfg",
"type": "public",
"wait": 2,
"connect": {
"strategy": "none"
}
},
{
"name": "i_srv",
"count": 1,
"cmd": "./bins/iroh-transfer provide --size=1M --relay-url=\"http://10.0.0.1:3340\"",
"type": "public",
"wait": 10,
"connect": {
"strategy": "none"
},
"param_parser": "iroh_ticket_v2"
},
{
"name": "i_get",
"count": 1,
"cmd": "time ./bins/iroh-transfer fetch --ticket %s --relay-url=\"http://10.0.0.1:3340\"",
"type": "nat",
"connect": {
"strategy": "params",
"node": "i_srv"
},
"process": "short",
"parser": "iroh_1mb",
"integration": "magic_iroh_client"
}
]
},
{
"name": "1_to_1_NAT_both",
"description": "",
"visualize": true,
"nodes": [
{
"name": "1_r",
"count": 1,
"cmd": "./bins/iroh-relay --dev --config-path ./relay.cfg",
"type": "public",
"wait": 2,
"connect": {
"strategy": "none"
}
},
{
"name": "i_srv",
"count": 1,
"cmd": "./bins/iroh-transfer provide --size=1M --relay-url=\"http://10.0.0.1:3340\"",
"type": "nat",
"wait": 10,
"connect": {
"strategy": "none"
},
"param_parser": "iroh_ticket_v2"
},
{
"name": "i_get",
"count": 1,
"cmd": "time ./bins/iroh-transfer fetch --ticket %s --relay-url=\"http://10.0.0.1:3340\"",
"type": "nat",
"connect": {
"strategy": "params",
"node": "i_srv"
},
"process": "short",
"parser": "iroh_1mb",
"integration": "magic_iroh_client"
}
]
}
]
}
File renamed without changes.
Loading

0 comments on commit ad060fe

Please sign in to comment.