CLOUDSTACK-3540: Fix edithosts.sh to prevent removing active dhcp entries

IP match must terminated by comma.
This commit is contained in:
Sheng Yang 2013-07-15 18:00:11 -07:00
parent 52434dabcc
commit 9fe1a2b9fa
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ then
fi
[ "$routes" != "" ] && echo "$tag,121,$routes" >> $DHCP_OPTS
#delete entry we just put in because we need a tag
sed -i /$ipv4/d $DHCP_HOSTS
sed -i /$ipv4,/d $DHCP_HOSTS
#put it back with a tag
echo "$mac,set:$tag,$ipv4,$host,infinite" >>$DHCP_HOSTS
fi