mambo/controller.py
def start_simulator(version, setup_simulator):
    '''
    starts the simulator according the version selected by the user
    '''
    if setup_simulator.show_connection_info(version):
        os.chdir(var.DOWNLOAD_DIR)
        set_network(setup_simulator)
        if 'power8' in version:
            p8_prefix = '/opt/ibm/systemsim-p8/run/pegasus/'
            p8_sim = p8_prefix + 'power8 -W -f'
            p8_tcl = p8_prefix + 'linux/boot-linux-le.tcl'
            setup_simulator.execute_cmd(p8_sim + ' ' + p8_tcl)
        elif 'power9' in version:
            p9_prefix = '/opt/ibm/systemsim-p9/run/p9/'
            p9_sim = p9_prefix + 'power9 -W -f'
            p9_tcl = p9_prefix + 'linux/boot-linux-le-skiboot.tcl'
            setup_simulator.execute_cmd(p9_sim + ' ' + p9_tcl)
        unset_network(setup_simulator)

    starts the simulator according the version selected by the user
    
starts the simulator according the version selected by the user
starts the simulator according the version selected by the user
def start_simulator(version, setup_simulator):
    if setup_simulator.show_connection_info(version):
        os.chdir(var.DOWNLOAD_DIR)
        set_network(setup_simulator)
        if 'power8' in version:
            p8_prefix = '/opt/ibm/systemsim-p8/run/pegasus/'
            p8_sim = p8_prefix + 'power8 -W -f'
            p8_tcl = p8_prefix + 'linux/boot-linux-le.tcl'
            setup_simulator.execute_cmd(p8_sim + ' ' + p8_tcl)
        elif 'power9' in version:
            p9_prefix = '/opt/ibm/systemsim-p9/run/p9/'
            p9_sim = p9_prefix + 'power9 -W -f'
            p9_tcl = p9_prefix + 'linux/boot-linux-le-skiboot.tcl'
            setup_simulator.execute_cmd(p9_sim + ' ' + p9_tcl)
        unset_network(setup_simulator)
def start_simulator ( version , setup_simulator ) : if setup_simulator . show_connection_info ( version ) : os . chdir ( var . DOWNLOAD_DIR ) set_network ( setup_simulator ) if 'power8' in version : p8_prefix = '/opt/ibm/systemsim-p8/run/pegasus/' p8_sim = p8_prefix + 'power8 -W -f' p8_tcl = p8_prefix + 'linux/boot-linux-le.tcl' setup_simulator . execute_cmd ( p8_sim + ' ' + p8_tcl ) elif 'power9' in version : p9_prefix = '/opt/ibm/systemsim-p9/run/p9/' p9_sim = p9_prefix + 'power9 -W -f' p9_tcl = p9_prefix + 'linux/boot-linux-le-skiboot.tcl' setup_simulator . execute_cmd ( p9_sim + ' ' + p9_tcl ) unset_network ( setup_simulator )
starts the simulator according the version selected by the user
starts the simulator according the version selected by the user
'''
    starts the simulator according the version selected by the user
    '''
version
setup_simulator