An instant virtual network on your laptop with light-weight virtualization. Here we introduce the Container Network Simulation tools. Users can generate, from the YAML configuration file, the script to build the L2 container network. Quickstart guide is provided in QUICKSTART.md. It is tested on Ubuntu 16.04 LTS and later.
- Docker
- OpenvSwitch (optional)
- graphviz (optional)
curl -Lo /usr/bin/tinet https://github.com/tinynetwork/tinet/releases/download/v0.0.2/tinet
chmod +x /usr/bin/tinet
tinet --version
git clone https://github.com/tinynetwork/tinet tinet && cd $_
docker run --rm -i -t -v $PWD:/v -w /v golang:1.12 go build
mv tinet /usr/local/bin
tinet up -c spec.yaml | sudo sh -x
tinet conf -c spec.yaml | sudo sh -x
tinet test -c spec.yaml | sudo sh -x
tinet down -c spec.yaml | sudo sh -x
# tinet
NAME:
tinet - tinet: Tiny Network
USAGE:
tinet [global options] command [command options] [arguments...]
VERSION:
0.0.1 (rev:)
AUTHOR:
ak1ra24 <[email protected]>
COMMANDS:
check check config
conf configure Node from tinet config file
down Down Node from tinet config file
exec Execute Command on Node from tinet config file.
img visualize network topology by graphviz from tinet config file
init Generate tinet config template file
ps docker and netns process
pull Pull Node docker image from tinet config file
reconf Stop, remove, create, start and config
reup Stop, remove, create, start
test Execute test commands from tinet config file.
up create Node from tinet config file
upconf Create, start and config
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help (default: false)
--version, -v print the version (default: false)
Simply fork and create a pull-request. We'll try to respond in a timely fashion.