def handle(self, *args, **options): self.logger.info("Syncing networks with PeeringDB...") api = PeeringDB() api.update_local_database(api.get_last_sync_time()) self.logger.info("Syncing AS details with PeeringDB...") autonomous_systems = AutonomousSystem.objects.all() for autonomous_system in autonomous_systems: autonomous_system.synchronize_with_peeringdb()
def handle(self, *args, **options): self.logger.info("Syncing networks with PeeringDB...") api = PeeringDB() api.update_local_database(api.get_last_sync_time())