Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Swap direction of requests for propagating NAT state from Nexus

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
停滞
技术栈
rust
领域
networking

调研方向

从 dpd/src/rpw/mod.rs 约第 102 行开始,阅读定期从 Nexus 获取并确保 NAT 状态的任务。移除本 issue 涵盖的获取和确保工作,同时检查最新有效的 NAT 状态 generation 是如何存储或引用的。完成的标准是 dpd 不再执行这种基于 pull 的 NAT 状态传播;来自 Nexus 的传播由单独的 Omicron issue 负责。

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

描述

Today, dpd pulls NAT state from Nexus here:

https://github.com/oxidecomputer/dendrite/blob/4c6f4b8443e2394669eb6200a9e8e881f67740fd/dpd/src/rpw/mod.rs#L102

That is a small loop which fetches the latest generation of NAT entries from Nexus periodically, and ensures they're all added to the ASIC tables. dpd then stores the latest valid NAT state generation number, which Nexus separately pulls and uses to clean up old NAT state in the database in its own background task.

We'd like to switch the sense of this propagation, pushing the state from Nexus to dpd rather than pulling it. The main reason for this is that it enables easier updates. dpd would no longer be a client of Nexus's internal API, so not "client-side versioned" in the terminology of RFD 567.

This issue covers removing this task for fetching and ensuring the NAT state. There will be a separate issue in Omicron for adding propagation from Nexus to dpd.

主要语言
Rust
星标
21
派生
3
平均合并
10 小时 45 分钟
30 天内合并 PR
2

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

oxidecomputer/dendrite 的其他 Issue

查看 oxidecomputer/dendrite 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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