mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 00:58:16 -06:00
#2034 add connection id to interface API
This commit is contained in:
parent
e5454d6714
commit
41c0c34c1a
@ -702,6 +702,7 @@ class InterfaceSerializer(serializers.ModelSerializer):
|
|||||||
return OrderedDict((
|
return OrderedDict((
|
||||||
('interface', PeerInterfaceSerializer(obj.connected_interface, context=self.context).data),
|
('interface', PeerInterfaceSerializer(obj.connected_interface, context=self.context).data),
|
||||||
('status', obj.connection.connection_status),
|
('status', obj.connection.connection_status),
|
||||||
|
('id', obj.connection.id),
|
||||||
))
|
))
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user