The network is too small to accomodate all existing devices

未关闭
#4,001 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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
主要语言
Rust
星标
2.9k
派生
121
平均合并
19 小时 6 分钟
30 天内合并 PR
83

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DefGuard/defguard 的其他 Issue

查看 DefGuard/defguard 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。