Change in vdsm[master]: BZ#811807 Enable network filtering
masayag at redhat.com
masayag at redhat.com
Mon Aug 20 16:21:28 UTC 2012
Moti Asayag has uploaded a new change for review.
Change subject: BZ#811807 Enable network filtering
......................................................................
BZ#811807 Enable network filtering
The VM network ineterface might recieve a list of rules to control the
VM traffic by using libvirt network filtering.
Change-Id: I33b3dc7021997f4d0c1194049b1c12ac3528f067
Signed-off-by: Moti Asayag <masayag at redhat.com>
---
M vdsm/libvirtvm.py
1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/53/7353/1
diff --git a/vdsm/libvirtvm.py b/vdsm/libvirtvm.py
index 3b7cfc5..35da707 100644
--- a/vdsm/libvirtvm.py
+++ b/vdsm/libvirtvm.py
@@ -945,6 +945,7 @@
<mac address="aa:bb:dd:dd:aa:bb"/>
<model type="virtio"/>
<source bridge="engine"/>
+ [<filterref filter='filter name'/>]
[<tune><sndbuf>0</sndbuf></tune>]
</interface>
"""
@@ -959,6 +960,12 @@
m = doc.createElement('source')
m.setAttribute('bridge', self.network)
iface.appendChild(m)
+ if hasattr(self, 'filters'):
+ filters = getattr(self, 'filters')
+ for filterName in filters:
+ m = doc.createElement('filterref')
+ m.setAttribute('filter', filterName)
+ iface.appendChild(m)
if hasattr(self, 'bootOrder'):
bootOrder = doc.createElement('boot')
bootOrder.setAttribute('order', self.bootOrder)
--
To view, visit http://gerrit.ovirt.org/7353
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I33b3dc7021997f4d0c1194049b1c12ac3528f067
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <masayag at redhat.com>
More information about the vdsm-patches
mailing list