summaryrefslogtreecommitdiff
path: root/roles/sapp/templates/sapp.toml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/sapp/templates/sapp.toml.j2')
-rw-r--r--roles/sapp/templates/sapp.toml.j219
1 files changed, 7 insertions, 12 deletions
diff --git a/roles/sapp/templates/sapp.toml.j2 b/roles/sapp/templates/sapp.toml.j2
index 2fc5896..3bb7e31 100644
--- a/roles/sapp/templates/sapp.toml.j2
+++ b/roles/sapp/templates/sapp.toml.j2
@@ -9,14 +9,14 @@
instance_name = "sapp4"
[CPU]
-{% if tsg_access_type == 0 %}
+{% if capture_packet_type == 0 %}
worker_threads=1
{% else %}
worker_threads={{ sapp.worker_threads }}
{% endif %}
send_only_threads_max={{ sapp.send_only_threads_max }}
### note, bind_mask, if you do not want to bind thread to special CPU core, keep it empty as []
-{% if tsg_access_type == 0 %}
+{% if capture_packet_type == 0 %}
bind_mask=[]
{% else %}
bind_mask=[{{ sapp.bind_mask }}]
@@ -42,13 +42,6 @@ dictator_enable=0
[packet_io.feature]
- {% if tsg_access_type == 4 %}
- ### note, used to represent inbound or outbound direction value,
- ### because it comes from Third party 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=""
@@ -76,7 +69,9 @@ dictator_enable=0
### note, depolyment.mode options: [mirror, inline, transparent]
[packet_io.depolyment]
- {% if tsg_access_type == 0 %}
+ {% if traffic_attr_type == 0 %}
+ mode=mirror
+ {% elif traffic_addr_type == 1 and network_topo_type == 1 and capture_packet_type == 0 %}
mode=transparent
{% else %}
mode=inline
@@ -84,7 +79,7 @@ dictator_enable=0
### note, interface.type options: [pag,pcap,marsio]
[packet_io.internal.interface]
- {% if tsg_access_type == 0 %}
+ {% if capture_packet_type == 0 %}
type=pcap
name={{packet_io.internal_interface}}
{% else %}
@@ -93,7 +88,7 @@ dictator_enable=0
{% endif %}
[packet_io.external.interface]
- {% if tsg_access_type == 0 %}
+ {% if capture_packet_type == 0 %}
type=pcap
name={{packet_io.external_interface}}
{% else %}