diff --git a/api/serializers.py b/api/serializers.py index f5fd1fa2..94144b40 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -349,6 +349,7 @@ class OptionalMachineSerializer(NamespacedHMSerializer): class OptionalTopologieSerializer(NamespacedHMSerializer): """Serialize `preferences.models.OptionalTopologie` objects. """ + switchs_management_interface_ip = serializers.CharField() class Meta: model = preferences.OptionalTopologie diff --git a/topologie/models.py b/topologie/models.py index 840d9c70..d02fce40 100644 --- a/topologie/models.py +++ b/topologie/models.py @@ -552,7 +552,7 @@ class Port(AclMixin, RevMixin, models.Model): return port_profile else: nothing_profile, _created = PortProfile.objects.get_or_create( - profile_default='nothing', + profil_default='nothing', name='nothing', radius_type='NO' )