Skip to content

Commit

Permalink
Merge pull request #113 from tinynetwork/example-trex
Browse files Browse the repository at this point in the history
examples/trex: change dir name
  • Loading branch information
slankdev authored Dec 7, 2023
2 parents 36d7440 + cb51d23 commit 65070c3
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 13 deletions.
4 changes: 3 additions & 1 deletion examples/trex/dual_node_single_instance/client.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
- port_limit: 2
version: 2
interfaces: ["net0","dum0"]
interfaces:
- "net0"
- "dum0"
platform:
master_thread_id: 3
latency_thread_id: 4
Expand Down
4 changes: 3 additions & 1 deletion examples/trex/dual_node_single_instance/server.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
- port_limit: 2
version: 2
interfaces: ["dum0","net0"]
interfaces:
- "dum0"
- "net0"
platform:
master_thread_id: 0
latency_thread_id: 1
Expand Down
2 changes: 1 addition & 1 deletion examples/trex/dual_node_single_instance/tcp_open.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def create_profile(self, cps):
dist_server=ip_gen_s)

# template
temp_c = ASTFTCPClientTemplate(program=prog_c, ip_gen=ip_gen, cps=cps,limit=cps)
temp_c = ASTFTCPClientTemplate(program=prog_c, ip_gen=ip_gen, cps=cps)
temp_s = ASTFTCPServerTemplate(program=prog_s)
template = ASTFTemplate(client_template=temp_c, server_template=temp_s)

Expand Down
2 changes: 1 addition & 1 deletion examples/trex/dual_node_single_instance/tcp_openclose.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def create_profile(self, cps):
dist_server=ip_gen_s)

# template
temp_c = ASTFTCPClientTemplate(program=prog_c, ip_gen=ip_gen, cps=cps,limit=cps)
temp_c = ASTFTCPClientTemplate(program=prog_c, ip_gen=ip_gen, cps=cps)
temp_s = ASTFTCPServerTemplate(program=prog_s)
template = ASTFTemplate(client_template=temp_c, server_template=temp_s)

Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions examples/trex/simple/cfg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- port_limit: 2
version: 2
interfaces:
- "net0"
- "net1"
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def create_profile(self, cps):
dist_server=ip_gen_s)

# template
temp_c = ASTFTCPClientTemplate(program=prog_c, ip_gen=ip_gen, cps=cps,limit=cps)
temp_c = ASTFTCPClientTemplate(program=prog_c, ip_gen=ip_gen, cps=cps)
temp_s = ASTFTCPServerTemplate(program=prog_s)
template = ASTFTemplate(client_template=temp_c, server_template=temp_s)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def create_profile(self, cps):
dist_server=ip_gen_s)

# template
temp_c = ASTFTCPClientTemplate(program=prog_c, ip_gen=ip_gen, cps=cps,limit=cps)
temp_c = ASTFTCPClientTemplate(program=prog_c, ip_gen=ip_gen, cps=cps)
temp_s = ASTFTCPServerTemplate(program=prog_s)
template = ASTFTemplate(client_template=temp_c, server_template=temp_s)

Expand Down
4 changes: 3 additions & 1 deletion examples/trex/single_node_dual_instance/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
prefix: client
zmq_pub_port: 4600
zmq_rpc_port: 4601
interfaces: ["net0","dum0"]
interfaces:
- "net0"
- "dum0"
platform:
master_thread_id: 3
latency_thread_id: 4
Expand Down
4 changes: 3 additions & 1 deletion examples/trex/single_node_dual_instance/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
prefix: server
zmq_pub_port: 4700
zmq_rpc_port: 4701
interfaces: ["dum1","net1"]
interfaces:
- "dum1"
- "net1"
platform:
master_thread_id: 0
latency_thread_id: 1
Expand Down
2 changes: 1 addition & 1 deletion examples/trex/single_node_dual_instance/tcp_open.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def create_profile(self, cps):
dist_server=ip_gen_s)

# template
temp_c = ASTFTCPClientTemplate(program=prog_c, ip_gen=ip_gen, cps=cps,limit=cps)
temp_c = ASTFTCPClientTemplate(program=prog_c, ip_gen=ip_gen, cps=cps)
temp_s = ASTFTCPServerTemplate(program=prog_s)
template = ASTFTemplate(client_template=temp_c, server_template=temp_s)

Expand Down
2 changes: 1 addition & 1 deletion examples/trex/single_node_dual_instance/tcp_openclose.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def create_profile(self, cps):
dist_server=ip_gen_s)

# template
temp_c = ASTFTCPClientTemplate(program=prog_c, ip_gen=ip_gen, cps=cps,limit=cps)
temp_c = ASTFTCPClientTemplate(program=prog_c, ip_gen=ip_gen, cps=cps)
temp_s = ASTFTCPServerTemplate(program=prog_s)
template = ASTFTemplate(client_template=temp_c, server_template=temp_s)

Expand Down
3 changes: 0 additions & 3 deletions examples/trex/single_node_single_instance/cfg.yaml

This file was deleted.

0 comments on commit 65070c3

Please sign in to comment.