From: Tony Mack Date: Sun, 30 Nov 2014 23:15:39 +0000 (-0500) Subject: removing unused step X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6348a4c767eaa1485478b3fd28f56feb7f5e8752;p=plstackapi.git removing unused step --- diff --git a/planetstack/openstack_observer/steps/sync_external_routes.py b/planetstack/openstack_observer/steps/sync_external_routes.py deleted file mode 100644 index 28d24cc..0000000 --- a/planetstack/openstack_observer/steps/sync_external_routes.py +++ /dev/null @@ -1,21 +0,0 @@ -import os -import base64 -from planetstack.config import Config -from observer.openstacksyncstep import OpenStackSyncStep -from core.models.site import Deployment - -class SyncExternalRoutes(OpenStackSyncStep): - # XXX what does this provide? - provides=[] - requested_interval = 86400 # This step is slow like a pig. Let's run it infrequently - - def call(self, **args): - deployments = Deployment.objects.all() - self.driver = self.driver.admin_driver(deployment=deployments[0],tenant='admin') - routes = self.driver.get_external_routes() - subnets = self.driver.shell.quantum.list_subnets()['subnets'] - for subnet in subnets: - try: - self.driver.add_external_route(subnet, routes) - except: - logger.log_exc("failed to add external route for subnet %s" % subnet)