Browse Source

controle de toutes les IP

Élie Bouttier 7 years ago
parent
commit
5e699ad7a2
1 changed files with 0 additions and 5 deletions
  1. 0 5
      services/management/commands/checkip.py

+ 0 - 5
services/management/commands/checkip.py

@@ -63,11 +63,6 @@ class Command(BaseCommand):
                 if alloc.route != route:
                     self.stdout.write(self.style.WARNING("L’IP %s est routée sur %s dans ip_ttnn.txt mais routée sur %s pour le service #%d sur Djadhere" % (resource, route, alloc.route, alloc.service.pk)))
                 continue
-            #if route.name not in ['cluster', 'tls', 'tunukr']:
-            if route.name in ['tunmin', 'tunsav', 'tunmvs', 'tunnai', 'tungoy', 'tunmon', 'tuncaz', 'tuntri', 'tunmts', 'tunfa2', 'tunmus', 'tunlar', 'tuncas', 'tunalt', 'tungby', 'tunpra', 'tunfab']:
-                if not resource.reserved:
-                    self.stdout.write(self.style.WARNING("L’IP %s est routée via %s dans ip_ttnn.txt mais disponible dans Djadhere" % (resource, route)))
-                continue
             if resource.reserved:
                 self.stdout.write(self.style.WARNING("L’IP %s est marqué réservée dans Djadhere alors que routée via %s dans ip_ttnn.txt" % (resource, route)))
             if check_reverse: