Add route policy restriction status to peer data in JSON response

This commit is contained in:
Eduardo Silva
2026-01-27 14:44:10 -03:00
parent 309de2c166
commit ed50883cff

View File

@@ -135,6 +135,7 @@ def peer_info(request):
'public_key': str(peer.public_key),
'uuid': str(peer.uuid),
'private_key_exists': bool(peer.private_key),
'is_route_policy_restricted': peer.is_route_policy_restricted,
}
return JsonResponse(data)