~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/virt/libvirt/firewall.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-08-16 14:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20120816140411-0mr4n241wmk30t9l
Tags: upstream-2012.2~f3
ImportĀ upstreamĀ versionĀ 2012.2~f3

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
 
161
161
    def unfilter_instance(self, instance, network_info):
162
162
        """Clear out the nwfilter rules."""
163
 
        instance_name = instance.name
 
163
        instance_name = instance['name']
164
164
        for (network, mapping) in network_info:
165
165
            nic_id = mapping['mac'].replace(':', '')
166
166
            instance_filter_name = self._instance_filter_name(instance, nic_id)
219
219
            try:
220
220
                self._conn.nwfilterLookupByName(instance_filter_name)
221
221
            except libvirt.libvirtError:
222
 
                name = instance.name
 
222
                name = instance['name']
223
223
                LOG.debug(_('The nwfilter(%(instance_filter_name)s) for'
224
224
                            '%(name)s is not found.') % locals(),
225
225
                          instance=instance)