From 62823da8b7d78f43c4dec0c875e28ac9637e354c Mon Sep 17 00:00:00 2001 From: songyanchao Date: Tue, 3 Aug 2021 02:58:05 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf(TSG-7260):=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9mirr=E7=BD=91=E5=8D=A1=E7=9A=84vlan=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改mirr网卡的vlan配置为2-66,1025-1089 https://jira.geedge.net/browse/TSG-7260 --- .../roles/system-init-9140/templates/90-9000NPBP01R01.rules.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/system-init-9140/templates/90-9000NPBP01R01.rules.j2 b/ansible/roles/system-init-9140/templates/90-9000NPBP01R01.rules.j2 index f95d1978..13011c90 100644 --- a/ansible/roles/system-init-9140/templates/90-9000NPBP01R01.rules.j2 +++ b/ansible/roles/system-init-9140/templates/90-9000NPBP01R01.rules.j2 @@ -34,7 +34,7 @@ ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:82:02.0", NAME:="eth_vf_kni" ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:82:02.1", NAME:="eth_vf_tfe" ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:82:02.2", NAME:="eth_vf_mirr" ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:82:02.3", NAME:="eth_vf_ctl" -ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:82:00.0",ATTR{device/sriov/2/trunk}="add 2-2048" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:82:00.0",ATTR{device/sriov/2/trunk}="add 2-66,1025-1089" ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:82:02.0",PROGRAM+="/usr/sbin/ip link set eth_pf_smbcx vf 0 vlan 4095" ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:82:02.1",PROGRAM+="/usr/sbin/ip link set eth_pf_smbcx vf 1 vlan 4095" ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:82:02.3",PROGRAM+="/usr/sbin/ip link set eth_pf_smbcx vf 3 vlan 3817"