|
|
@@ -54,13 +54,12 @@ class CircuitCircuitTerminationSerializer(WritableNestedSerializer):
|
|
|
)
|
|
|
termination_id = serializers.IntegerField(allow_null=True, required=False, default=None)
|
|
|
termination = serializers.SerializerMethodField(read_only=True)
|
|
|
- provider_network = ProviderNetworkSerializer(nested=True, allow_null=True)
|
|
|
|
|
|
class Meta:
|
|
|
model = CircuitTermination
|
|
|
fields = [
|
|
|
- 'id', 'url', 'display_url', 'display', 'termination_type', 'termination_id', 'termination',
|
|
|
- 'provider_network', 'port_speed', 'upstream_speed', 'xconnect_id', 'description',
|
|
|
+ 'id', 'url', 'display_url', 'display', 'termination_type', 'termination_id', 'termination', 'port_speed',
|
|
|
+ 'upstream_speed', 'xconnect_id', 'description',
|
|
|
]
|
|
|
|
|
|
@extend_schema_field(serializers.JSONField(allow_null=True))
|
|
|
@@ -133,15 +132,14 @@ class CircuitTerminationSerializer(NetBoxModelSerializer, CabledObjectSerializer
|
|
|
)
|
|
|
termination_id = serializers.IntegerField(allow_null=True, required=False, default=None)
|
|
|
termination = serializers.SerializerMethodField(read_only=True)
|
|
|
- provider_network = ProviderNetworkSerializer(nested=True, required=False, allow_null=True)
|
|
|
|
|
|
class Meta:
|
|
|
model = CircuitTermination
|
|
|
fields = [
|
|
|
'id', 'url', 'display_url', 'display', 'circuit', 'term_side', 'termination_type', 'termination_id',
|
|
|
- 'termination', 'provider_network', 'port_speed', 'upstream_speed', 'xconnect_id', 'pp_info', 'description',
|
|
|
- 'mark_connected', 'cable', 'cable_end', 'link_peers', 'link_peers_type', 'tags', 'custom_fields', 'created',
|
|
|
- 'last_updated', '_occupied',
|
|
|
+ 'termination', 'port_speed', 'upstream_speed', 'xconnect_id', 'pp_info', 'description', 'mark_connected',
|
|
|
+ 'cable', 'cable_end', 'link_peers', 'link_peers_type', 'tags', 'custom_fields', 'created', 'last_updated',
|
|
|
+ '_occupied',
|
|
|
]
|
|
|
brief_fields = ('id', 'url', 'display', 'circuit', 'term_side', 'description', 'cable', '_occupied')
|
|
|
|