Skip to content

example: management network - #70

Merged
choppsv1 merged 1 commit into
LabNConsulting:mainfrom
liambrady:liambrady/example_mgmt_net
Sep 30, 2025
Merged

choppsv1 merged 1 commit into
LabNConsulting:mainfrom
liambrady:liambrady/example_mgmt_net

Conversation

@liambrady

Copy link
Copy Markdown
Contributor

management networks can be configured such that a set of nodes are automatically connected to the host (or some other interface outside of munet) by taking advantage of the 'hostintf' and 'initial-setup-host-cmd' config options.

this example demos such a case, connecting munet nodes to an external network namespace.

thanks to @dfedyk for the original topology demoing a similar approach to doing this.

@liambrady
liambrady requested a review from choppsv1 September 18, 2025 21:46
@codecov

codecov Bot commented Sep 18, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.88%. Comparing base (d611d46) to head (acd089f).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #70      +/-   ##
==========================================
- Coverage   60.07%   57.88%   -2.20%     
==========================================
  Files          19       19              
  Lines        5829     5794      -35     
==========================================
- Hits         3502     3354     -148     
- Misses       2327     2440     +113     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@choppsv1

choppsv1 commented Sep 29, 2025 •

Copy link
Copy Markdown
Collaborator

Rather than call this mgmt-net I'd call it init-host-net There are probably lots of examples we could come up in that category, this is one example that does a lot more than just mgmt-net it's doing host-side raw networking changes among other things.

FWIW, I often create topologies where all the nodes share a common network and I usually call this the "management" network (e.g., mgmt), as this configuration is very common in the industry where routers are all accessed on their "managment interface" which is attached to a "management network". This mgmt network will not carry user/customer traffic which will be on all the other interfaces on the various routers.

FWIW, munet has a simple method to give access to default routing to the nodes.

@choppsv1 choppsv1 left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please change the directory this is in to init-host-net rather than mgmt-net

@liambrady
liambrady force-pushed the liambrady/example_mgmt_net branch from 4dc2acc to 4b94aa3 Compare September 30, 2025 14:48
@liambrady
liambrady requested a review from choppsv1 September 30, 2025 14:49
@liambrady

liambrady commented Sep 30, 2025 •

Copy link
Copy Markdown
Contributor Author

name of example topology has been changed (and the commit message updated). A rebase will follow this push.

@liambrady
liambrady force-pushed the liambrady/example_mgmt_net branch from 4b94aa3 to acd089f Compare September 30, 2025 14:51
networks can be configured such that a set of nodes are automatically
connected to the host (or some other interface outside of munet) by
taking advantage of the 'hostintf' and 'initial-setup-host-cmd' config
options.

this example demos such a case, connecting munet nodes to an external
network namespace.

Signed-off-by: Liam Brady <lbrady@labn.net>
@choppsv1
choppsv1 merged commit 09866a0 into LabNConsulting:main Sep 30, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants