mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3540: Fix edithosts.sh to prevent removing active dhcp entries
IP match must terminated by comma.
This commit is contained in:
parent
52434dabcc
commit
9fe1a2b9fa
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue