From d3db2ef1f501cdbbf136de35e77a72e9b4970ece Mon Sep 17 00:00:00 2001 From: "Alexey I. Froloff" Date: Tue, 7 Jun 2011 17:33:10 +0400 Subject: [PATCH] ovs-save: Fix address label processing. If there is a string in ip addr show output, that "coincide with the name of the device or ... prefixed with the device name followed by colon", consider this is an address label string. Signed-off-by: Alexey I. Froloff Signed-off-by: Ben Pfaff --- utilities/ovs-save | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utilities/ovs-save b/utilities/ovs-save index b2c726eb..323d1845 100755 --- a/utilities/ovs-save +++ b/utilities/ovs-save @@ -115,8 +115,9 @@ for dev in $devs; do continue 2 fi ;; - "$dev") - # Omit because "ip" wants "dev" keyword in front. + "$dev"|"$dev:"*) + # Address label string + addrcmd="$addrcmd label $1" shift continue ;; -- 2.30.2