From 68e79c43cafc2ae28b51ced67fd7baa41cce5785 Mon Sep 17 00:00:00 2001 From: "Tang, Roy (rt7380)" Date: Sat, 27 Oct 2018 18:47:24 +0000 Subject: [PATCH] Minor fixes to neutron sriov agent syntax error in init script template Change-Id: I8e51907e7a65aa914f42a4d9badda9b621d344d0 --- neutron/templates/bin/_neutron-sriov-agent-init.sh.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/templates/bin/_neutron-sriov-agent-init.sh.tpl b/neutron/templates/bin/_neutron-sriov-agent-init.sh.tpl index b848af3955..d0961903b9 100644 --- a/neutron/templates/bin/_neutron-sriov-agent-init.sh.tpl +++ b/neutron/templates/bin/_neutron-sriov-agent-init.sh.tpl @@ -58,7 +58,7 @@ ip link set {{ $sriov.device }} promisc ${promisc_mode} #NOTE(portdirect): get the bus that the port is on NIC_BUS=$(lshw -c network -businfo | awk '/{{ $sriov.device }}/ {print $1}') #NOTE(portdirect): get first port on the nic -NIC_FIRST_PORT=$(lshw -c network -businfo | awk "/${NIC_BUS%%.*}/ { print \$2; exit }" +NIC_FIRST_PORT=$(lshw -c network -businfo | awk "/${NIC_BUS%%.*}/ { print \$2; exit }") #NOTE(portdirect): Enable promisc mode on the nic, by setting it for the 1st port ethtool --set-priv-flags ${NIC_FIRST_PORT} vf-true-promisc-support ${promisc_mode} {{- end }}