]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: detect conflicting route even if it is the final entry
authorLaine Stump <laine@laine.org>
Mon, 15 Sep 2014 17:30:08 +0000 (13:30 -0400)
committerLaine Stump <laine@laine.org>
Mon, 15 Sep 2014 18:35:29 +0000 (14:35 -0400)
commit22048ae61dbb7876d17bcf7dbedf9e8d1cf98d4e
tree06fe1b3e0ba0a01a698992f531bbcb7bee41af09
parent938fb12fad6d15c9fdb73f998c4e0ec1e278721f
network: detect conflicting route even if it is the final entry

This is a folloup to commit 5f719596, which checks for a route
conflicting with the standard libvirt default network subnet
(192.168.122.0/24). It turns out that $() strips the trailing newline
from the output of "ip route show", so there would be no match if the
route we were looking for was the final line of output. This can be
solved by adding ${nl} to the end of the output (just as we were
already adding it at the beginning of the output).
libvirt.spec.in