Skip to content

Switch to pynng instead of nnpy. #5576

Merged
fruffy merged 3 commits intomainfrom
fruffy/nnpy_ptf
Apr 5, 2026
Merged

Switch to pynng instead of nnpy. #5576
fruffy merged 3 commits intomainfrom
fruffy/nnpy_ptf

Conversation

@fruffy
Copy link
Copy Markdown
Collaborator

@fruffy fruffy commented Mar 29, 2026

nnpy has been deprecated four years ago and shows signs of bit-rotting. Installing it on newer distributions seems to cause issues. This is a draft to replace nnpy with pynng.

The reason nanomsg is very useful is because it allows us to model network switch behavior without requiring veths. And without veths we do not need sudo. When working with agents, a tight feedback loop can be useful, which includes running packet tests. sudo requirements can get in the way of that.

p4lang/ptf#234 p4lang/behavioral-model#1361

@fruffy fruffy added bmv2 Topics related to BMv2 or v1model infrastructure Topics related to code style and build and test infrastructure. labels Mar 29, 2026
Copy link
Copy Markdown
Contributor

@jafingerhut jafingerhut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fruffy fruffy marked this pull request as ready for review April 5, 2026 20:00
fruffy added 3 commits April 5, 2026 16:01
Signed-off-by: fruffy <fruffy@nyu.edu>
Signed-off-by: fruffy <fruffy@nyu.edu>
Signed-off-by: fruffy <fruffy@nyu.edu>
@fruffy fruffy force-pushed the fruffy/nnpy_ptf branch from 32800f6 to aa9987b Compare April 5, 2026 20:02
@fruffy fruffy added this pull request to the merge queue Apr 5, 2026
Merged via the queue into main with commit 43552ca Apr 5, 2026
25 checks passed
@fruffy fruffy deleted the fruffy/nnpy_ptf branch April 5, 2026 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bmv2 Topics related to BMv2 or v1model infrastructure Topics related to code style and build and test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants