<s> """<STR_LIT>""" <EOL> import sys <EOL> import atexit <EOL> import mininet . util <EOL> import mininext . util <EOL> mininet . util . isShellBuiltin = mininext . util . isShellBuiltin <EOL> sys . modules [ '<STR_LIT>' ] = mininet . util <EOL> from mininet . util import dumpNodeConnections <EOL> from mininet . node import OVSController <EOL> from mininet . log import setLogLevel , info <EOL> from mininext . cli import CLI <EOL> from mininext . net import MiniNExT <EOL> from topo import QuaggaTopo <EOL> net = None <EOL> def startNetwork ( ) : <EOL> "<STR_LIT>" <EOL> info ( '<STR_LIT>' ) <EOL> topo = QuaggaTopo ( ) <EOL> info ( '<STR_LIT>' ) <EOL> global net <EOL> net = MiniNExT ( topo , controller = OVSController ) <EOL> net . start ( ) <EOL> info ( '<STR_LIT>' ) <EOL> dumpNodeConnections ( net . hosts ) <EOL> info ( '<STR_LIT>' ) <EOL> net . ping ( net . hosts ) <EOL> info ( '<STR_LIT>' ) <EOL> for host in net . hosts : <EOL> host . cmdPrint ( "<STR_LIT>" ) <EOL> info ( '<STR_LIT>' ) <EOL> CLI ( net ) <EOL> def stopNetwork ( ) : <EOL> "<STR_LIT>" <EOL> if net is not None : <EOL> info ( '<STR_LIT>' ) <EOL> net . stop ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> atexit . register ( stopNetwork ) <EOL> setLogLevel ( '<STR_LIT:info>' ) <EOL> startNetwork ( ) </s>
