conf/network_conf: use virStringParseYesNo helper
conf/network_conf: use virStringParseYesNo helper

A function virStringParseYesNo was added to convert
string 'yes' to true and 'no' to false, so use this
helper to replace 'STREQ(.*, \"yes\")' and
'STREQ(.*, \"no\")' as it allows us to drop several
repetitive if-then-else string->bool conversion blocks.

Reviewed-by: Cole Robinson <7cd45ff6ad1fb7cf556a02797d774247851499f8@redhat.com>
Signed-off-by: Mao Zhongyi <c7ea2309a237789bbb43a52c8d1e0a7c5649c50c@cmss.chinamobile.com>
Signed-off-by: Zhang Shengju <732ab4d9aa3a9cc34167137405caff6df7bae7ae@cmss.chinamobile.com>
Acked-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

olafhering/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,libvirt/libvirt,olafhering/libvirt,jardasgit/libvirt,nertpinx/libvirt,zippy2/libvirt,zippy2/libvirt,jfehlig/libvirt,jardasgit/libvirt,libvirt/libvirt,zippy2/libvirt,olafhering/libvirt,jardasgit/libvirt,crobinso/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,crobinso/libvirt,jardasgit/libvirt,jfehlig/libvirt,nertpinx/libvirt,olafhering/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,libvirt/libvirt,jfehlig/libvirt,crobinso/libvirt,zippy2/libvirt,nertpinx/libvirt,jardasgit/libvirt,libvirt/libvirt,crobinso/libvirt