Skip to content

agustinbarbalase/gonett

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gonett

gonett is a Go version for library mininet

Build

make build

This produces bin/gonett.

Commands

All commands must run as root (or via sudo).

Build sample topology

Creates h1, h2 hosts and s1 switch, wires them, assigns IPs, and brings links up.

sudo ./bin/gonett build

List containers

sudo ./bin/gonett ls

Exec in a container namespace

sudo ./bin/gonett exec h1 ping -c 3 10.0.0.2

Attach interactive shell

sudo ./bin/gonett attach h1

Remove a container by name

sudo ./bin/gonett rm h1

Cleanup everything

Deletes all managed namespaces, bridges, veths.

sudo ./bin/gonett cleanup

Notes

  • Requires Linux with network namespace support.
  • Uses vishvananda/netlink and netns; namespace operations are thread-bound, so internal code pins goroutines to OS threads where necessary.

About

A Go library for create networks topology and simulate latencies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published