The network is too small to accomodate all existing devices

Đang mở
#4,001 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
backend, networking

Hướng nghiên cứu

Start by tracing how saving an existing location validates VPN CIDR capacity and how it counts devices across locations; the issue names no files or tests. Compare the validation with the expected per-location device count, then add or update a regression test for multiple locations. Done when a location can be saved when its own devices fit the CIDR, even if the total device count across Defguard is larger.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Describe the bug
We have multiple locations.
When editing an existing location, I cannot save the changes when there are more devices than the defined VPN CIDR on a location allows.
But it doesn't only check the devices that apply for that location, it checks the total devices in defguard.

Error:
The network is too small to accomodate all existing devices (network capacity: 253, total devices: 259)

Expected behavior
I would expect that I cannot save the location change(s), when the total devices that use this location exceed the configured CIDR.
Otherwise we would need to set a large CIDR on all locations, even when only a small amount of the users/devices have access to it.

Version information

  • Defguard Core version: v2.1.1
Ngôn ngữ chính
Rust
Star
2.9k
Fork
121
Merge trung bình
19 giờ 20 phút
Pull request đã merge (30 ngày)
80

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DefGuard/defguard

Tất cả issue của DefGuard/defguard

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.