blob: ba4f939ee7f0ad350ed703e54c483326bb813853 [file] [log] [blame]
Sapan Bhatia24836f12013-08-27 10:16:05 -04001import os
2import base64
3from planetstack.config import Config
4
5class SyncExternalRoutes(SyncStep):
6 # XXX what does this provide?
7 def call(self):
8 routes = self.manager.driver.get_external_routes()
9 subnets = self.manager.driver.shell.quantum.list_subnets()['subnets']
10 for subnet in subnets:
11 try:
12 self.manager.driver.add_external_route(subnet, routes)
13 except:
14 logger.log_exc("failed to add external route for subnet %s" % subnet)