CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 20:01:43 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=0703699e7f8e65c9a92c88c16dad79458904b8c5d9041117498adadc3791d55ea%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22Klt0EX_D2qCmTSuz9oQqnIlXrsmpGA3q%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d0f3750e499dfd-BLR
"""Custom topology script for MininetCreates custom tree with parameters dep - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """Custom topology script for Mininet
- Creates custom tree with parameters depth and fanout (count of childs per parent node)
- Use: mn --custom %PATH to script%/%script_name%.py --topo custom
- """
- from mininet.topo import Topo
- from mininet.net import Mininet
- from mininet.util import dumpNodeConnections
- from mininet.log import setLogLevel
- class CustomTopo(Topo):
- # fanout - number of child switch per parent switch"
- def __init__(self, depth=2, fanout=2, **opts):
- # Initialize topology and default options
- Topo.__init__(self, **opts)
- #core_switch = self.addSwitch('c1')
- switches = {} #map {depth_level : [list of nodes]}
- hosts = []
- parend_id = 0
- switches[0] = list()
- switches[0].append(self.addSwitch('s1'))
- for s in range(1, depth): #last is host level
- switches[s] = list() #initialize list for dict
- for sw in range(0,fanout**s):
- switch_id = fanout**s+sw
- switches[s].append(self.addSwitch('s%s'%(switch_id)))
- self.addLink(switches[s][-1],switches[s-1][sw//fanout])
- for h in range(0, fanout**depth):
- hosts.append(self.addHost('h%s'%(h+1)))
- self.addLink(hosts[-1],switches[depth-1][h//fanout])
- topos = { 'custom': ( lambda: CustomTopo(depth=2,fanout=2) ) } # set params here
Advertisement
Add Comment
Please, Sign In to add comment
-
π Crypto Swap Glitch β
Working
JavaScript | 8 sec ago | 0.24 KB
-
β
β Make huge profits on trading ββ O
JavaScript | 9 sec ago | 0.25 KB
-
π Swapzone +37% glitch β O
JavaScript | 13 sec ago | 0.25 KB
-
π EASY MONEY GUIDE β
Working
JavaScript | 17 sec ago | 0.24 KB
-
ββ
Marketplace Glitch β
Working β
NEVER SEEN...
JavaScript | 18 sec ago | 0.25 KB
-
β
β Make huge profits on trading ββ 5
JavaScript | 22 sec ago | 0.25 KB
-
π ChangeNOW Exploit
JavaScript | 27 sec ago | 0.24 KB
-
ββ
Exploit 2500$ in 15 Minutesβββ P
JavaScript | 27 sec ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand