3 from planetstack.config import Config
4 from observer.openstacksyncstep import OpenStackSyncStep
6 class SyncExternalRoutes(OpenStackSyncStep):
7 # XXX what does this provide?
9 requested_interval = 86400 # This step is slow like a pig. Let's run it infrequently
11 def call(self, **args):
12 routes = self.driver.get_external_routes()
13 subnets = self.driver.shell.quantum.list_subnets()['subnets']
14 for subnet in subnets:
16 self.driver.add_external_route(subnet, routes)
18 logger.log_exc("failed to add external route for subnet %s" % subnet)