summaryrefslogtreecommitdiff
path: root/roles/tfe
diff options
context:
space:
mode:
authorzhangzhihan <[email protected]>2020-05-21 15:30:04 +0800
committerzhangzhihan <[email protected]>2020-05-21 15:30:04 +0800
commit17221ed92130a9d60fe879f05450ec5fc573b2f3 (patch)
tree3e534718ab3eef24605d115c837fce4f68418812 /roles/tfe
parent037489a9b43f5aee28a607ccf0a07f9b8f34777b (diff)
20200521
Diffstat (limited to 'roles/tfe')
-rw-r--r--roles/tfe/templates/tfe.conf.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/tfe/templates/tfe.conf.j2 b/roles/tfe/templates/tfe.conf.j2
index 62d2fd4..b009909 100644
--- a/roles/tfe/templates/tfe.conf.j2
+++ b/roles/tfe/templates/tfe.conf.j2
@@ -55,7 +55,11 @@ untrusted_ca_path=resource/tfe/tango-ca-v3-untrust-ca.pem
passthrough_all_tcp=0
[traffic_mirror]
+{% if tsg_access_type == 0 %}
+device=lo
+{% else %}
device={{ nic_traffic_mirror.name }}
+{% endif %}
type=0
[ratelimit]