summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-09-27 11:51:18 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-09-27 11:51:18 +0000
commitf3b2d8301059e5144517c5dcdaaba4ea15b1719b (patch)
tree3997681220cc53e8c9f29bce07ad39cc320ad393 /lib
parent905506e205f00a5ad7792e9d177b1928c5d22ba5 (diff)
parenta151bf4b58bb83753f5d4de7f34a6f77c61d87ed (diff)
Merge "Fix PREFIX calculation for attach_interface_to_ovs" into stable/colorado
Diffstat (limited to 'lib')
-rw-r--r--lib/common-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common-functions.sh b/lib/common-functions.sh
index 6941093c..4dd8a131 100644
--- a/lib/common-functions.sh
+++ b/lib/common-functions.sh
@@ -72,7 +72,7 @@ function attach_interface_to_ovs {
if [ -z "$if_mask" ]; then
# we can look for PREFIX here, then convert it to NETMASK
- if_prefix=$(sed -n 's/^PREFIX=\(.*\)$/\1/p' ${if_file})
+ if_prefix=$(sed -n 's/^PREFIX=[^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1/p' ${if_file})
if_mask=$(prefix2mask ${if_prefix})
fi