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

« back to all changes in this revision

Viewing changes to nova/network/manager.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-09 14:24:07 UTC
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: package-import@ubuntu.com-20111209142407-fviz6p5dnictpxsr
Tags: upstream-2012.1~e2~20111208.11721
ImportĀ upstreamĀ versionĀ 2012.1~e2~20111208.11721

Show diffs side-by-side

added added

removed removed

Lines of Context:
506
506
        for network in self.db.network_get_all_by_host(ctxt, self.host):
507
507
            self._setup_network(ctxt, network)
508
508
 
509
 
    def periodic_tasks(self, context=None):
510
 
        """Tasks to be run at a periodic interval."""
511
 
        super(NetworkManager, self).periodic_tasks(context)
 
509
    @manager.periodic_task
 
510
    def _disassociate_stale_fixed_ips(self, context):
512
511
        if self.timeout_fixed_ips:
513
512
            now = utils.utcnow()
514
513
            timeout = FLAGS.fixed_ip_disassociate_timeout