From e43e4d68e97a046229795a61d139762d20d38907 Mon Sep 17 00:00:00 2001 From: Chet Burgess Date: Tue, 19 Feb 2013 22:12:43 +0000 Subject: Make add-fixed-ip update nwfilter wth in libvirt Add inject_network_info to the libvirt driver so that the add-fixed-ip call will trigger a refresh of the nwfilters. Change-Id: I00eccf34b8f92fb1e26a72e4bddb47dd39c4558f Fixes: bug #1124722 --- nova/virt/libvirt/driver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py index 6f1cfef6f..2c557fd53 100755 --- a/nova/virt/libvirt/driver.py +++ b/nova/virt/libvirt/driver.py @@ -3543,6 +3543,9 @@ class LibvirtDriver(driver.ComputeDriver): % locals()) return os.access(instance_path, os.W_OK) + def inject_network_info(self, instance, nw_info): + self.firewall_driver.setup_basic_filtering(instance, nw_info) + class HostState(object): """Manages information about the compute node through libvirt.""" -- cgit