This commit is contained in:
zhangzhihan
2020-06-09 13:10:38 +08:00
parent 792ce3da1a
commit 829dd78560
27 changed files with 198 additions and 41 deletions

View File

@@ -2,7 +2,7 @@
log_level=30
[log]
{% if tsg_access_type == 0 %}
{% if tsg_running_type == 0 %}
nic_name={{ tsg_tun_mode.ethname }}
{% else %}
nic_name={{ nic_mgr.name }}

View File

@@ -1,4 +1,4 @@
{% if tsg_access_type == 0 %}
{% if tsg_running_type == 0 %}
TFE_DEVICE_DATA_INCOMING=tun_kni
{% else %}
TFE_DEVICE_DATA_INCOMING={{ nic_data_incoming.name }}
@@ -8,7 +8,7 @@ TFE_PEER_MAC_DATA_INCOMING=aa:bb:cc:dd:ee:ff
TFE_LOCAL_IP_DATA_INCOMING=172.16.241.2
TFE_PEER_IP_DATA_INCOMING=172.16.241.1
{% if tsg_access_type == 0 %}
{% if tsg_running_type == 0 %}
TFE_WATCHDOG_DEVICE={{ tsg_tun_mode.tun_name }}
TFE_WATCHDOG_IP=192.168.100.1
{% endif %}

View File

@@ -31,7 +31,7 @@ service_cache_expire_seconds=600
# default 0
mc_cache_enable=1
# default eth0
{% if tsg_access_type == 0 %}
{% if tsg_running_type == 0 %}
mc_cache_eth={{ tsg_tun_mode.tun_name }}
{% else %}
mc_cache_eth={{ nic_inner_ctrl.name }}
@@ -56,7 +56,7 @@ enable_health_check=0
passthrough_all_tcp=0
[traffic_mirror]
{% if tsg_access_type == 0 %}
{% if tsg_running_type == 0 %}
device=lo
{% else %}
device={{ nic_traffic_mirror.name }}