summaryrefslogtreecommitdiff
path: root/roles/kni
diff options
context:
space:
mode:
authorzhangzhihan <[email protected]>2020-06-11 13:17:06 +0800
committerzhangzhihan <[email protected]>2020-06-11 13:17:06 +0800
commite0d3ff7927f43c4fa1a03694a5c61ea7a2a2c2a1 (patch)
tree718fba105a3c0e49d741a2916e0ee0c58bd996d3 /roles/kni
parent829dd78560768c693bddca2519f1d637eef87748 (diff)
update
Diffstat (limited to 'roles/kni')
-rw-r--r--roles/kni/templates/kni.conf.j28
1 files changed, 6 insertions, 2 deletions
diff --git a/roles/kni/templates/kni.conf.j2 b/roles/kni/templates/kni.conf.j2
index 0d867c7..a48cfc9 100644
--- a/roles/kni/templates/kni.conf.j2
+++ b/roles/kni/templates/kni.conf.j2
@@ -15,8 +15,12 @@ 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 tsg_running_type == 0 %}
-{% else %}
+{% if tsg_access_type == 4 %}
+[tfe0]
+enabled = 1
+dev_eth_symbol = {{ nic_data_incoming.vf1_name }}
+ip_addr = 192.168.100.1
+{% elif tsg_running_type == 1 %}
[tfe0]
enabled = 1
dev_eth_symbol = {{ nic_to_tfe.tfe0.name }}