MCPcopy Create free account
hub / github.com/mininet/mininet / testLinkLimit

Function testLinkLimit

examples/limit.py:15–18  ·  view source on GitHub ↗

Run bandwidth limit test

( net, bw )

Source from the content-addressed store, hash-verified

13
14
15def testLinkLimit( net, bw ):
16 "Run bandwidth limit test"
17 info( '*** Testing network %.2f Mbps bandwidth limit\n' % bw )
18 net.iperf()
19
20def limit( bw=10, cpu=.1 ):
21 """Example/test of link and CPU bandwidth limits

Callers 1

limitFunction · 0.85

Calls 1

iperfMethod · 0.45

Tested by

no test coverage detected