def exampleAllHosts(vlan):
 host = partial(VLANHost, vlan=vlan)
 topo = SingleSwitchTopo(k=2)
 net = Mininet(host=host, topo=topo)
 net.start()
 CLI(net)
 net.stop()

def exampleAllHosts ( vlan ) : host = partial ( VLANHost , vlan = vlan ) topo = SingleSwitchTopo ( k = 2 ) net = Mininet ( host = host , topo = topo ) net . start ( ) CLI ( net ) net . stop ( )
simple example of how vlanhost can be used in a script .