MCPcopy Create free account

hub / github.com/John-Lin/tinynet / functions

Functions35 in github.com/John-Lin/tinynet

↓ 10 callersFunctionsh
Print a command and send it to the shell
clean.py:41
↓ 5 callersFunctionifaceUp
(ifName string)
link.go:25
↓ 4 callersMethodaddPort
addPort for asking OVSDB driver to add the port
ovs_switch.go:66
↓ 3 callersFunctionNewOVSSwitch
NewOVSSwitch for creating a ovs bridge
ovs_switch.go:36
↓ 3 callersFunctiongetAllIPsfromCIDR
https://gist.github.com/kotakanbe/d3059af990252ba89a82
utils.go:22
↓ 2 callersMethodDelete
()
ovs_switch.go:98
↓ 2 callersFunctionNewContainer
NewContainer for creating a docker container
host.go:58
↓ 2 callersFunctionNewHost
NewHost for creating a network namespace
host.go:39
↓ 2 callersMethodSetCtrl
SetCtrl for seting up OpenFlow controller for ovs bridge
ovs_switch.go:78
↓ 2 callersFunctionifaceFromNetlinkLink
(l netlink.Link)
link.go:63
↓ 2 callersFunctioninc
http://play.golang.org/p/m8TNTtygK0
utils.go:36
↓ 2 callersMethodsetIfaceIP
(address string)
host.go:108
↓ 2 callersMethodsetupVeth
(ifName string, mtu int)
host.go:72
↓ 1 callersFunctionensureDocker
(imageRef string)
docker.go:28
↓ 1 callersFunctionmain
()
clean.py:46
↓ 1 callersFunctionmakeVethPair
Create a veth pair
link.go:75
↓ 1 callersFunctionpseudoRandomName
Generate pseudo random string with length 8, but not Universally unique.
link.go:109
↓ 1 callersFunctionsetIP
(ifName, address string)
link.go:50
FunctionAddHost
AddHost will add a host to topology. set docker to true can enable docker container as a host
net.go:92
FunctionAddHostWithConf
AddHostWithConf will add a host to topology.
net.go:61
FunctionAddLink
AddLink will add a link between switch to switch or host to switch.
net.go:144
FunctionAddSwitch
AddSwitch will add a switch to topology.
net.go:124
FunctionGetIPs
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
FunctionNewHostConfig
NewHostConfig is a constructor to initial host network configuration.
net.go:34
FunctionTestDeleteOVSSwitch
(t *testing.T)
ovs_switch_test.go:31
FunctionTestDeleteOVSSwitch_Invalid
(t *testing.T)
ovs_switch_test.go:41
FunctionTestInc
(t *testing.T)
utils_test.go:28
FunctionTestNewOVSSwitch
(t *testing.T)
ovs_switch_test.go:25
FunctionTestNewOVSSwitch_Invalid
(t *testing.T)
ovs_switch_test.go:36
FunctionTestUtils_Invalid
(t *testing.T)
utils_test.go:23
FunctionTestUtils_Success
(t *testing.T)
utils_test.go:38
FunctionbridgeByName
(name string)
link.go:38
Functionmain
Custom topology example leftHost --- leftSwitch --- rightSwitch --- rightHost
examples/topo-2sw-2host.go:11
Functionmain
Custom topology example C1 C2 | | leftHost --- leftSwitch --- rightSwitch --- rightHosts
examples/controllers.go:13
Functionmain
Custom topology example Single switch with 8 hosts
examples/topo-single-8.go:13