diff options
| author | zhangzhihan <[email protected]> | 2020-06-24 18:08:40 +0800 |
|---|---|---|
| committer | zhangzhihan <[email protected]> | 2020-06-24 18:08:40 +0800 |
| commit | e6fbb265a82a3e8939cc54707358616579e0fcf4 (patch) | |
| tree | 359ec62ca898d411b6fc11d62e1d1bb27d2d8250 /roles/sapp | |
| parent | e1dc6b5f6221e32de7c323846de065f4bd852f2c (diff) | |
Diffstat (limited to 'roles/sapp')
| -rw-r--r-- | roles/sapp/.DS_Store | bin | 6148 -> 0 bytes | |||
| -rw-r--r-- | roles/sapp/templates/sapp.toml.j2 | 14 |
2 files changed, 12 insertions, 2 deletions
diff --git a/roles/sapp/.DS_Store b/roles/sapp/.DS_Store Binary files differdeleted file mode 100644 index 9c4f059..0000000 --- a/roles/sapp/.DS_Store +++ /dev/null diff --git a/roles/sapp/templates/sapp.toml.j2 b/roles/sapp/templates/sapp.toml.j2 index d8c18e4..f7febdf 100644 --- a/roles/sapp/templates/sapp.toml.j2 +++ b/roles/sapp/templates/sapp.toml.j2 @@ -14,6 +14,9 @@ worker_threads=1 {% else %} worker_threads={{ sapp.worker_threads }} {% endif %} +{% if tsg_access_type == 4 %} +send_only_threads_max={{ sapp.send_only_threads_max }} +{% endif %} ### note, bind_mask, if you do not want to bind thread to special CPU core, keep it empty as [] {% if tsg_access_type == 0 %} bind_mask=[] @@ -22,6 +25,13 @@ bind_mask=[{{ sapp.bind_mask }}] {% endif %} [PACKET_IO] +{% if tsg_access_type == 4 %} +### note, used to represent inbound or outbound direction value, +##### because it comes from other device, so it needs to be specified manually, +##### if inbound_route_dir=1, then outbound_route_dir=0, vice versa, +##### in other words, outbound_route_dir = 1 ^ inbound_route_dir; +inbound_route_dir={{ sapp.inbound_route_dir }} +{% endif %} ### note, BSD_packet_filter, if you do not want to set any filter rule, keep it empty as "" BSD_packet_filter="" @@ -37,7 +47,7 @@ BSD_packet_filter="" [packet_io.internal.interface] {% if tsg_access_type == 0 %} type=pcap - name={{tsg_tun_mode.internal_interface}} + name={{server.internal_interface}} {% else %} type=marsio name=vxlan_user @@ -46,7 +56,7 @@ BSD_packet_filter="" [packet_io.external.interface] {% if tsg_access_type == 0 %} type=pcap - name={{tsg_tun_mode.external_interface}} + name={{server.external_interface}} {% else %} type=pcap name=lo |
