Sapan Bhatia | 24836f1 | 2013-08-27 10:16:05 -0400 | [diff] [blame] | 1 | import os |
2 | import base64 | ||||
3 | from planetstack.config import Config | ||||
4 | |||||
5 | class 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) |