summaryrefslogtreecommitdiff
path: root/roles/kni
diff options
context:
space:
mode:
authorzhangzhihan <[email protected]>2020-09-10 03:22:39 +0800
committerzhangzhihan <[email protected]>2020-09-10 03:22:39 +0800
commit1d210d18c4068c5bdb19dadaafafb1cf53b3970f (patch)
treef17c079f0e7dbb456100c90e6843af79879c0aa4 /roles/kni
parente088bc922bb6a56c05114f234097e2de3c92a785 (diff)
update new 20.08
Diffstat (limited to 'roles/kni')
-rw-r--r--roles/kni/templates/kni.conf.j220
1 files changed, 4 insertions, 16 deletions
diff --git a/roles/kni/templates/kni.conf.j2 b/roles/kni/templates/kni.conf.j2
index 0c84c50..a812b8b 100644
--- a/roles/kni/templates/kni.conf.j2
+++ b/roles/kni/templates/kni.conf.j2
@@ -1,12 +1,8 @@
[global]
log_path = ./log/kni/kni.log
-log_level = {{ kni.global.log_level }}
+log_level = {{ kni_log_level }}
tfe_node_count = {{ kni.global.tfe_node_count }}
-{% if tsg_running_type == 0 or 1 %}
-manage_eth = {{ server.ethname }}
-{% else %}
manage_eth = {{ nic_mgr.name }}
-{% endif %}
{% if tsg_running_type == 0 %}
deploy_mode = tun
{% else %}
@@ -38,20 +34,12 @@ ip_addr = 192.168.100.4
{% endif %}
[tfe_cmsg_receiver]
-{% if tsg_running_type == 0 or 1%}
-listen_eth = {{ server.tun_name }}
-{% else %}
listen_eth = {{ nic_inner_ctrl.name }}
-{% endif %}
listen_port = 2475
[watch_dog]
switch = {{ kni.watch_dog.switch }}
-{% if tsg_running_type == 0 or 1 %}
-listen_eth = {{ server.tun_name }}
-{% else %}
listen_eth = {{ nic_inner_ctrl.name }}
-{% endif %}
listen_port = 2476
keepalive_idle = 2
keepalive_intvl = 1
@@ -87,9 +75,9 @@ mho_expire_time = 0
mho_eliminate_type = LRU
[field_stat]
-remote_switch = {{ fs_remote.switch }}
-remote_ip = {{ fs_remote.address }}
-remote_port = {{ fs_remote.port }}
+remote_switch = 1
+remote_ip = 127.0.0.1
+remote_port = 8100
local_path = ./fs2_kni.status
stat_cycle = 1
print_mode = 1