summaryrefslogtreecommitdiff
path: root/roles/kni
diff options
context:
space:
mode:
authorzhangzhihan <[email protected]>2020-03-28 12:59:59 +0800
committerzhangzhihan <[email protected]>2020-03-28 12:59:59 +0800
commitcfca4e5d64f732efd683d59a7eb68286bb95377c (patch)
tree58a386e7fa240286f423d550c56d9e01b07dd349 /roles/kni
parentbf5a401af9137e6cdc8259c2285aa6beaf0b4317 (diff)
改进双臂部署部分内容
Diffstat (limited to 'roles/kni')
-rw-r--r--roles/kni/templates/kni.conf.j25
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/kni/templates/kni.conf.j2 b/roles/kni/templates/kni.conf.j2
index af5ee96..d9395db 100644
--- a/roles/kni/templates/kni.conf.j2
+++ b/roles/kni/templates/kni.conf.j2
@@ -11,7 +11,8 @@ deploy_mode = normal
tun_name = tun_kni
src_mac_addr = 00:0e:c6:d6:72:c1
dst_mac_addr = fe:65:b7:03:50:bd
-
+{% if run_as_tun_mode %}
+{% else %}
[tfe0]
enabled = 1
dev_eth_symbol = {{ nic_to_tfe.tfe0.name }}
@@ -26,7 +27,7 @@ ip_addr = 192.168.100.3
enabled = 1
dev_eth_symbol = {{ nic_to_tfe.tfe2.name }}
ip_addr = 192.168.100.4
-
+{% endif %}
[tfe_cmsg_receiver]
listen_eth = {{ nic_inner_ctrl.name }}
listen_port = 2475