-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import NAT code #206
Import NAT code #206
Conversation
004b816
to
d5de0e0
Compare
@daniel-noland The issue I face with CI here is that some crate (namely, |
Will pull this and look. The resolver is normally verry good about this but it does happen. Can't say just yet |
b1ed4cd
to
002c328
Compare
Looks like I'm a victim of my own commits. I didn't test properly and we are using tracing-test. Stand by |
The root issue is here: tokio-rs/tracing#3033 We should add an exception in the deny list for the moment and then adjust once tracing bumps to matchers 0.2 |
6dd233b
to
ac4865c
Compare
Thanks Daniel 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. Don't forget to fix my TODOs later :)
Warning: This code is not fully functional, yet. Also, tests don't pass. This is an import from the private repository at githedgehog/tmp-nat. Only the nat.rs file has been ported so far. Some YAML files used for tests will be ported in subsequent commits, while some other source files (vni.rs, lr_examples/) were not meant to be imported here and were ignored. The Git history from the separate repository had limited insight about the code evolution, and is not imported. Some minor adjustments were required: - I added the license and copyright headers; - I removed the declarations of the vni and lr_examples modules; - I temporarily reverted to the use of u32s instead of Vni-s; - I removed the empty main() function from nat.rs, now a module. The code is not complete yet, but this will allow us to: - avoid managing a separate repository, - make it public (no reason to keep it private), - better hook it into the dataplane package, - build it in CI to detect regressions (no workflow in the other repo). Joint work with Sergey (who authored most of this code) and Daniel. Co-authored-by: Sergey Matov <sergey.matov@githedgehog.com> Co-authored-by: Daniel Noland <daniel@githedgehog.com> Signed-off-by: Quentin Monnet <qmo@qmon.net>
The latter is a fork, apparently maintained, of the former. Link: https://github.com/sebastienrousseau/serde_yml Signed-off-by: Quentin Monnet <qmo@qmon.net>
The struct GlobalContext and the pif_table attribute in struct Vpc are not used at this time. We'll use them soon (or clean them up if necessary), but in the meantime we prefer to suppress the related warnings at build time. Signed-off-by: Quentin Monnet <qmo@qmon.net>
We already have a representation of VNIs, let's use it rather than a u32 that doesn't match the real size (24-bit) of the IDs. Co-authored-by: Daniel Noland <daniel@githedgehog.com> Signed-off-by: Quentin Monnet <qmo@qmon.net>
Import YAML files used for tests in the NAT module. Fix path handling for pointing to these YAML files in the code, and also fix dependencies imports for running the tests. Signed-off-by: Quentin Monnet <qmo@qmon.net>
Tracking issue tokio-rs/tracing#3033 Adjust deny.toml to address a minor version alignment issue in the tracing ecosystem causing duplicated versions of the matchers crate to be pulled. [ Quentin: Rebased, edited commit log, and fixed merge conflict with commit 90a9056 ("Syn is no longer duplicated") ] Signed-off-by: Daniel Noland <daniel@githedgehog.com> Signed-off-by: Quentin Monnet <qmo@qmon.net>
ac4865c
to
7e76f22
Compare
I rebased the PR to address the merge conflicts on |
Not fully functional yet.
Imported from the separate, private repo githedgehog/tmp-nat. There is no attempt to complete or improve the existing code in this PR, only to merge it into the repo while keeping
cargo build
andcargo test
functional.Refer to individual commits for details.
Fixes: #176