增加gdev配置

This commit is contained in:
崔一鸣
2019-06-22 20:13:27 +08:00
parent 1a506d3647
commit d58db4279e
3 changed files with 15 additions and 3 deletions

View File

@@ -13,4 +13,10 @@
template: template:
src: "{{ role_path }}/templates/kni.conf.j2" src: "{{ role_path }}/templates/kni.conf.j2"
dest: /home/tsg/kni/conf/kni/kni.conf dest: /home/tsg/kni/conf/kni/kni.conf
tags: template
- name: Template the gdev.conf
template:
src: "{{ role_path }}/templates/gdev.conf.j2"
dest: /home/tsg/kni/conf/gdev.conf
tags: template tags: template

View File

@@ -0,0 +1,6 @@
[Module]
pcapdevice={{ nic_data_incoming.name }}
sendto_gdev_card={{ nic_data_incoming.name }}
sendto_gdev_ip={{ nic_data_incoming.ip }}
gdev_status_switch=1
default_keepalive_action=0

View File

@@ -15,11 +15,11 @@
- nic_inner_ctrl: - nic_inner_ctrl:
name: eth2.100 name: eth2.100
- nic_to_tfe: - nic_to_tfe:
tfe0: tfe0:
name: eth7 name: eth7
tfe1: tfe1:
name: eth8 name: eth8
tfe2: tfe2:
name: eth9 name: eth9
- hosts: blade-03 - hosts: blade-03