From 86ab77a64a9ec8c93459bc5da106d096fc896846 Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Thu, 29 Jul 2021 13:11:02 +0800 Subject: [PATCH] =?UTF-8?q?TSG-7234=20=E8=B0=83=E6=95=B4Proxy=E7=9A=84?= =?UTF-8?q?=E8=A7=A3=E5=AF=86=E6=B5=81=E9=87=8F=E8=BD=AC=E5=8F=91=E7=9A=84?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E4=BB=A5=E9=80=82=E9=85=8DTSG-9140?= =?UTF-8?q?=E4=B8=8B=E8=A7=A3=E5=AF=86=E6=B5=81=E9=87=8F=E8=BD=AC=E5=8F=91?= =?UTF-8?q?=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/install_config/group_vars/rpm_version.yml | 2 +- .../group_vars/stage_one_7400MCN123P01R01.yml | 1 + .../install_config/group_vars/stage_one_9000NPBP01R01.yml | 8 +++++--- ansible/roles/tfe/templates/tfe.conf.j2.j2 | 6 +++--- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ansible/install_config/group_vars/rpm_version.yml b/ansible/install_config/group_vars/rpm_version.yml index 68082b72..b92c063e 100644 --- a/ansible/install_config/group_vars/rpm_version.yml +++ b/ansible/install_config/group_vars/rpm_version.yml @@ -53,7 +53,7 @@ sapp_rpm_version: tcpdump_mesa: tcpdump_mesa-1.0.6.faa4eba tfe_rpm_version: - tfe: tfe-4.5.6.319afbc + tfe: tfe-4.5.7.67be58f tsg_app_rpm_version: app_sketch_local: app_sketch_local-4.0.2.d0ba885 diff --git a/ansible/install_config/group_vars/stage_one_7400MCN123P01R01.yml b/ansible/install_config/group_vars/stage_one_7400MCN123P01R01.yml index f7c2d6cc..b9a35d42 100644 --- a/ansible/install_config/group_vars/stage_one_7400MCN123P01R01.yml +++ b/ansible/install_config/group_vars/stage_one_7400MCN123P01R01.yml @@ -29,6 +29,7 @@ tfe: enable: 1 device: eth_mirr_d type: 1 + default_vlan_id_for_mac: 0 cm_policy_server_ip: '{% raw %}{{ cm_policy_server_ip }}{% endraw %}' diff --git a/ansible/install_config/group_vars/stage_one_9000NPBP01R01.yml b/ansible/install_config/group_vars/stage_one_9000NPBP01R01.yml index cfacffac..3b5abd63 100644 --- a/ansible/install_config/group_vars/stage_one_9000NPBP01R01.yml +++ b/ansible/install_config/group_vars/stage_one_9000NPBP01R01.yml @@ -54,6 +54,7 @@ sapp: nic_name: eth_vf_raw prefix_path: /opt/tsg/sapp +# “default_vlan_id_for_mac” needs to be modified according to the vlan plan of the device tfe: tfe_env_config: TFE_DEVICE_DATA_INCOMING: eth_vf_tfe @@ -71,9 +72,10 @@ tfe: kafka: NIC_NAME: eth_vf_ctl traffic_mirror: - enable: 0 - device: lo - type: 0 + enable: 1 + device: eth_vf_mirr + type: 1 + default_vlan_id_for_mac: 300 tsg_diagnose: docker_compose_yml: diff --git a/ansible/roles/tfe/templates/tfe.conf.j2.j2 b/ansible/roles/tfe/templates/tfe.conf.j2.j2 index 208b3142..75e09956 100644 --- a/ansible/roles/tfe/templates/tfe.conf.j2.j2 +++ b/ansible/roles/tfe/templates/tfe.conf.j2.j2 @@ -175,10 +175,10 @@ statsd_set_prometheus_url_path=/metrics [traffic_mirror] enable={{ tfe.tfe_conf.traffic_mirror.enable }} device={{ tfe.tfe_conf.traffic_mirror.device }} -type={{ tfe.tfe_conf.traffic_mirror.type }} - # 0:TRAFFIC_MIRROR_ETHDEV_AF_PACKET; 1:TRAFFIC_MIRROR_ETHDEV_MARSIO -type=0 +type={{ tfe.tfe_conf.traffic_mirror.type }} +default_vlan_id_for_mac={{ tfe.tfe_conf.traffic_mirror.default_vlan_id_for_mac }} + table_info=resource/pangu/table_info_traffic_mirror.conf stat_file=log/traffic_mirror.status