Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/John-Lin/tinynet
/ functions
Functions
35 in github.com/John-Lin/tinynet
⨍
Functions
35
◇
Types & classes
3
↓ 10 callers
Function
sh
Print a command and send it to the shell
clean.py:41
↓ 5 callers
Function
ifaceUp
(ifName string)
link.go:25
↓ 4 callers
Method
addPort
addPort for asking OVSDB driver to add the port
ovs_switch.go:66
↓ 3 callers
Function
NewOVSSwitch
NewOVSSwitch for creating a ovs bridge
ovs_switch.go:36
↓ 3 callers
Function
getAllIPsfromCIDR
https://gist.github.com/kotakanbe/d3059af990252ba89a82
utils.go:22
↓ 2 callers
Method
Delete
()
ovs_switch.go:98
↓ 2 callers
Function
NewContainer
NewContainer for creating a docker container
host.go:58
↓ 2 callers
Function
NewHost
NewHost for creating a network namespace
host.go:39
↓ 2 callers
Method
SetCtrl
SetCtrl for seting up OpenFlow controller for ovs bridge
ovs_switch.go:78
↓ 2 callers
Function
ifaceFromNetlinkLink
(l netlink.Link)
link.go:63
↓ 2 callers
Function
inc
http://play.golang.org/p/m8TNTtygK0
utils.go:36
↓ 2 callers
Method
setIfaceIP
(address string)
host.go:108
↓ 2 callers
Method
setupVeth
(ifName string, mtu int)
host.go:72
↓ 1 callers
Function
ensureDocker
(imageRef string)
docker.go:28
↓ 1 callers
Function
main
()
clean.py:46
↓ 1 callers
Function
makeVethPair
Create a veth pair
link.go:75
↓ 1 callers
Function
pseudoRandomName
Generate pseudo random string with length 8, but not Universally unique.
link.go:109
↓ 1 callers
Function
setIP
(ifName, address string)
link.go:50
Function
AddHost
AddHost will add a host to topology. set docker to true can enable docker container as a host
net.go:92
Function
AddHostWithConf
AddHostWithConf will add a host to topology.
net.go:61
Function
AddLink
AddLink will add a link between switch to switch or host to switch.
net.go:144
Function
AddSwitch
AddSwitch will add a switch to topology.
net.go:124
Function
GetIPs
GetIPs will get IP address from a CIDR notation Return an array with IP address. negative num for getting all IP addresses (network address and broadc
net.go:196
Function
NewHostConfig
NewHostConfig is a constructor to initial host network configuration.
net.go:34
Function
TestDeleteOVSSwitch
(t *testing.T)
ovs_switch_test.go:31
Function
TestDeleteOVSSwitch_Invalid
(t *testing.T)
ovs_switch_test.go:41
Function
TestInc
(t *testing.T)
utils_test.go:28
Function
TestNewOVSSwitch
(t *testing.T)
ovs_switch_test.go:25
Function
TestNewOVSSwitch_Invalid
(t *testing.T)
ovs_switch_test.go:36
Function
TestUtils_Invalid
(t *testing.T)
utils_test.go:23
Function
TestUtils_Success
(t *testing.T)
utils_test.go:38
Function
bridgeByName
(name string)
link.go:38
Function
main
Custom topology example leftHost --- leftSwitch --- rightSwitch --- rightHost
examples/topo-2sw-2host.go:11
Function
main
Custom topology example C1 C2 | | leftHost --- leftSwitch --- rightSwitch --- rightHosts
examples/controllers.go:13
Function
main
Custom topology example Single switch with 8 hosts
examples/topo-single-8.go:13