Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 75754531 authored by chirac's avatar chirac

Merge branch 'fix_typo_ap' into 'dev'

Fixe une typo sur les bornes wifi -> access_point

See merge request federez/re2o!316
parents bbf77add 8dd4473d
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2018-09-27 16:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('topologie', '0064_switch_automatic_provision'),
operations = [
field=models.CharField(blank=True, choices=[('room', 'room'), ('access_point', 'access_point'), ('uplink', 'uplink'), ('asso_machine', 'asso_machine'), ('nothing', 'nothing')], max_length=32, null=True, unique=True, verbose_name='Default profile'),
......@@ -311,7 +311,7 @@ class Switch(AclMixin, Machine):
""" Returns the 'main' interface of the switch
It must the the management interface for that device"""
switch_iptype = OptionalTopologie.get_cached_value('switchs_ip_type')
if switch_iptype:
if switch_iptype:
return self.interface_set.filter(type__ip_type=switch_iptype).first()
return self.interface_set.first()
......@@ -672,7 +672,7 @@ class PortProfile(AclMixin, RevMixin, models.Model):
('room', 'room'),
('accespoint', 'accesspoint'),
('access_point', 'access_point'),
('uplink', 'uplink'),
('asso_machine', 'asso_machine'),
('nothing', 'nothing'),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment