mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 23:22:25 +00:00
Merge branch 'patch_api_room' into aurore
This commit is contained in:
commit
4d18613e7b
1 changed files with 0 additions and 28 deletions
|
@ -299,31 +299,3 @@ class PortsSerializer(NamespacedHMSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = topologie.Port
|
model = topologie.Port
|
||||||
fields = ("state", "port", "pretty_name", "get_port_profile")
|
fields = ("state", "port", "pretty_name", "get_port_profile")
|
||||||
|
|
||||||
|
|
||||||
class SwitchPortSerializer(serializers.ModelSerializer):
|
|
||||||
"""Serialize the data about the switches"""
|
|
||||||
|
|
||||||
ports = PortsSerializer(many=True, read_only=True)
|
|
||||||
model = ModelSwitchSerializer(read_only=True)
|
|
||||||
switchbay = SwitchBaySerializer(read_only=True)
|
|
||||||
|
|
||||||
class Meta:
|
|
||||||
model = topologie.Switch
|
|
||||||
fields = (
|
|
||||||
"short_name",
|
|
||||||
"model",
|
|
||||||
"switchbay",
|
|
||||||
"ports",
|
|
||||||
"ipv4",
|
|
||||||
"ipv6",
|
|
||||||
"interfaces_subnet",
|
|
||||||
"interfaces6_subnet",
|
|
||||||
"automatic_provision",
|
|
||||||
"rest_enabled",
|
|
||||||
"web_management_enabled",
|
|
||||||
"get_radius_key_value",
|
|
||||||
"get_management_cred_value",
|
|
||||||
"get_radius_servers",
|
|
||||||
"list_modules",
|
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in a new issue