From d58db4279eea8ce94f4df8666c53ab0c6fb093a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E4=B8=80=E9=B8=A3?= Date: Sat, 22 Jun 2019 20:13:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0gdev=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/kni/tasks/main.yml | 6 ++++++ roles/kni/templates/gdev.conf.j2 | 6 ++++++ site.yml | 6 +++--- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 roles/kni/templates/gdev.conf.j2 diff --git a/roles/kni/tasks/main.yml b/roles/kni/tasks/main.yml index 354c24d..ca5b716 100644 --- a/roles/kni/tasks/main.yml +++ b/roles/kni/tasks/main.yml @@ -13,4 +13,10 @@ template: src: "{{ role_path }}/templates/kni.conf.j2" 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 \ No newline at end of file diff --git a/roles/kni/templates/gdev.conf.j2 b/roles/kni/templates/gdev.conf.j2 new file mode 100644 index 0000000..b2364c5 --- /dev/null +++ b/roles/kni/templates/gdev.conf.j2 @@ -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 \ No newline at end of file diff --git a/site.yml b/site.yml index 3eb1a5c..59d8e3b 100644 --- a/site.yml +++ b/site.yml @@ -15,11 +15,11 @@ - nic_inner_ctrl: name: eth2.100 - nic_to_tfe: - tfe0: + tfe0: name: eth7 - tfe1: + tfe1: name: eth8 - tfe2: + tfe2: name: eth9 - hosts: blade-03