]> xenbits.xensource.com Git - libvirt.git/commit
nwfilter: fix adding std MAC and IP values to filter binding
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Wed, 20 Mar 2019 13:05:59 +0000 (16:05 +0300)
committerNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Fri, 22 Mar 2019 09:03:00 +0000 (12:03 +0300)
commit01e11ebcb6e8f24662b7c67b70134c192785691c
tree6a930648d042408b7a7734a810a689fbe6bc08b8
parentac0379043ac3a96856b4a1c83939adf12a85ee10
nwfilter: fix adding std MAC and IP values to filter binding

Commit d1a7c08eb changed filter instantiation code to ignore MAC and IP
variables explicitly specified for filter binding. It just replaces
explicit values with values associated with the binding. Before the
commit virNWFilterCreateVarsFrom was used so that explicit value
take precedence. Let's bring old behavior back.

This is useful. For example if domain has two interfaces it makes
sense to list both mac adresses in MAC var of every interface
filterref. So that if guest make a bond of these interfaces
and start sending frames with one of the mac adresses from
both interfaces we can pass outgress traffic from both
interfaces too.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
src/nwfilter/nwfilter_gentech_driver.c