Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
140f3ee
added support for docker macvlan network type. creates docker network…
Aug 3, 2025
934873a
schema and compile changes
Aug 3, 2025
c859bd7
type and schema adjustments
Aug 3, 2025
77ac8ca
types and host adapter logging
Aug 3, 2025
ec221ad
createHostMacvlanInterface refinements
Aug 3, 2025
5bbe2cf
createHostMacvlanInterface debug logging
Aug 3, 2025
2de58a3
exec to osexec correction
Aug 3, 2025
7b25a13
macvlan mode adjustment
Aug 3, 2025
e0c949b
host adapter
Aug 3, 2025
2d3616f
set hostIfName alphanumeric
Aug 3, 2025
775f026
cleaning up
Aug 3, 2025
e7706f9
postActions cleanuup
Aug 4, 2025
47ac498
log adjustment and commented out cmd line tests
Aug 4, 2025
9418099
breaking out hostnet
Aug 5, 2025
f26a991
imports fix
Aug 5, 2025
e075b95
log items
Aug 5, 2025
88c1bfe
removed unused build tags. hard coded host macvlan adapter subnet for…
Aug 5, 2025
6066bfb
improved host static route
Aug 5, 2025
5379226
containerlab macvlan static route adjustments
Aug 5, 2025
bfe22e2
handle aux CIDR in topo
Aug 5, 2025
ccde65f
removed redundant instructional logging
Aug 5, 2025
fc07295
Update types/types.go
jbernardini Aug 6, 2025
7b3ea85
Update types/types.go
jbernardini Aug 6, 2025
3c77c6e
removed unused helper function
Aug 6, 2025
80659d1
Merge branch 'macvlan-support' of https://github.com/jbernardini/cont…
Aug 6, 2025
7710ed1
Update hostnet/macvlan.go
jbernardini Aug 6, 2025
0cffdcc
removed unnecessary err check on network reinspection, identified by …
Aug 6, 2025
15d96b0
Merge branch 'macvlan-support' of https://github.com/jbernardini/cont…
Aug 6, 2025
c6da989
linter nits
Aug 7, 2025
679d008
added CreateNet caller parameter to prevent net creation when called …
Aug 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func destroyFn(_ *cobra.Command, _ []string) error {
// create management network or use existing one
// we call this to populate the nc.cfg.mgmt.bridge variable
// which is needed for the removal of the iptables rules
if err = nc.CreateNetwork(ctx); err != nil {
if err = nc.CreateNetwork(ctx, "destroy"); err != nil {
return err
}

Expand Down
4 changes: 2 additions & 2 deletions core/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"github.com/srl-labs/containerlab/labels"
)

func (c *CLab) CreateNetwork(ctx context.Context) error {
func (c *CLab) CreateNetwork(ctx context.Context, caller ...string) error {
// create docker network or use existing one
if err := c.globalRuntime().CreateNet(ctx); err != nil {
if err := c.globalRuntime().CreateNet(ctx, caller...); err != nil {
return err
}

Expand Down
Loading