]> xenbits.xensource.com Git - libvirt.git/commit
network: allow configuring firewalld zone for virtual network bridge device
authorLaine Stump <laine@laine.org>
Wed, 9 Jan 2019 21:51:31 +0000 (16:51 -0500)
committerLaine Stump <laine@laine.org>
Fri, 1 Feb 2019 17:57:13 +0000 (12:57 -0500)
commit30a6f9168634f8ce269f1ef294c4a18d9c95939c
tree441df7bd9a656a67124c9c3ca82811d0dd7b68c6
parentae05211a360077f56883cd0a6c0f82ed57f746cb
network: allow configuring firewalld zone for virtual network bridge device

Since we're setting the zone anyway, it will be useful to allow
setting a different (custom) zone for each network. This will be done
by adding a "zone" attribute to the "bridge" element, e.g.:

   ...
   <bridge name='virbr0' zone='myzone'/>
   ...

If a zone is specified in the config and it can't be honored, this
will be an error.

Signed-off-by: Laine Stump <laine@laine.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
docs/firewall.html.in
docs/formatnetwork.html.in
docs/schemas/basictypes.rng
docs/schemas/network.rng
src/conf/network_conf.c
src/conf/network_conf.h
src/network/bridge_driver_linux.c
tests/networkxml2xmlin/routed-network.xml
tests/networkxml2xmlout/routed-network.xml