Esempio n. 1
0
 def __init__(self):
     """ Init
     Method: Single layer of nested class instances for easy organization.
     Note: Order is important due to dependencies!  Any inheritance MUST follow suit.
     *** DO NOT CHANGE THIS INIT ***
     """
     self.show_version()
     self.uut_conn = aplib.conn.uutTN
     self.ud = _UutDescriptor(common_def=None,
                              product_line_def=None,
                              uut_conn=self.uut_conn,
                              parent_module=thismodule)
     self.mode_mgr = _ModeManager(mode_module=modes,
                                  statemachine=modes.uut_state_machine,
                                  uut_prompt_map=modes.uut_prompt_map,
                                  uut_conn=self.uut_conn)
     self.process = _Process(mode_mgr=self.mode_mgr, ud=self.ud)
     self.power = _Power(mode_mgr=self.mode_mgr, ud=self.ud)
     self.rommon = _RommonGen3(mode_mgr=self.mode_mgr, ud=self.ud)
     self.linux = _Linux(mode_mgr=self.mode_mgr, ud=self.ud)
     self.equip = _Equipment(ud=self.ud, modules=[])
     self.diags = _Stardust(mode_mgr=self.mode_mgr,
                            ud=self.ud,
                            linux=self.linux,
                            equip=self.equip)
     self.peripheral = _Peripheral(mode_mgr=self.mode_mgr,
                                   ud=self.ud,
                                   sysinit=self.diags.sysinit)
     self.pcamap = _PcamapGen3(mode_mgr=self.mode_mgr,
                               ud=self.ud,
                               rommon=self.rommon,
                               peripheral=self.peripheral)
     self.ios = _IOS(mode_mgr=self.mode_mgr, ud=self.ud)
     self._callback_()
     return
Esempio n. 2
0
    def __init__(self):
        self.uut_conn = aplib.conn.uutTN
        self.ud = _UutDescriptor(common_def=_common_def,
                                 product_line_def=_product_line_def,
                                 uut_conn=self.uut_conn,
                                 parent_module=thismodule)
        self.mode_mgr = _ModeManager(mode_module=_modes3,
                                     statemachine=self.ud.uut_state_machine,
                                     uut_prompt_map=self.ud.uut_prompt_map,
                                     uut_conn=self.uut_conn)
        self.process = _Process(mode_mgr=self.mode_mgr, ud=self.ud)
        self.power = _Power(mode_mgr=self.mode_mgr, ud=self.ud)
        self.rommon = _RommonGen3(mode_mgr=self.mode_mgr, ud=self.ud)
        self.linux = _Linux(mode_mgr=self.mode_mgr, ud=self.ud)
        self.diags = _Stardust3(mode_mgr=self.mode_mgr,
                                ud=self.ud,
                                linux=self.linux,
                                equip=None)
        self.peripheral = _PeripheralC3K(mode_mgr=self.mode_mgr,
                                         sysinit=self.diags.sysinit)
        self.pcamap = _PcamapGen3(mode_mgr=self.mode_mgr,
                                  ud=self.ud,
                                  rommon=self.rommon,
                                  peripheral=self.peripheral)
        self.ios = _IOS(mode_mgr=self.mode_mgr, ud=self.ud)
        self._callback_()

        return
Esempio n. 3
0
 def __init__(self, family_filter):
     self.uut_conn = aplib.conn.uutTN
     self.ud = _UutDescriptor(common_def=_common_def,
                              product_line_def=_product_line_def,
                              ios_manifest=_ios_manifest4,
                              uut_conn=self.uut_conn,
                              family_filter=family_filter)
     self.mode_mgr = _ModeManager(mode_module=_modes4,
                                  statemachine=self.ud.uut_state_machine,
                                  uut_prompt_map=self.ud.uut_prompt_map,
                                  uut_conn=self.uut_conn)
     self.process = _Process(mode_mgr=self.mode_mgr, ud=self.ud)
     self.power = _Power(mode_mgr=self.mode_mgr, ud=self.ud)
     self.rommon = _RommonC9400(mode_mgr=self.mode_mgr, ud=self.ud)
     self.linux = _Linux(mode_mgr=self.mode_mgr, ud=self.ud)
     self.equip = _Equipment(ud=self.ud,
                             modules=[poe_loadbox, traf_generator])
     self.diags = _StardustC9400(mode_mgr=self.mode_mgr,
                                 ud=self.ud,
                                 linux=self.linux,
                                 equip=self.equip,
                                 power=self.power)
     self.peripheral = _PeripheralC4K(mode_mgr=self.mode_mgr,
                                      ud=self.ud,
                                      sysinit=self.diags.sysinit)
     self.pcamap = _PcamapC9400(mode_mgr=self.mode_mgr,
                                ud=self.ud,
                                rommon=self.rommon,
                                peripheral=self.peripheral)
     self.ios = _IOS(mode_mgr=self.mode_mgr, ud=self.ud)
     self.act2 = _ACT2(mode_mgr=self.mode_mgr, ud=self.ud)
     self.x509sudi = _X509Sudi(mode_mgr=self.mode_mgr,
                               ud=self.ud,
                               linux=self.linux)
     self.traffic = _Traffic(
         fmdiags=_TrafficDiagsC9400(mode_mgr=self.mode_mgr,
                                    ud=self.ud,
                                    diags=self.diags),
         fmgenerator=_TrafficSNTC9400(mode_mgr=self.mode_mgr,
                                      ud=self.ud,
                                      ios=self.ios,
                                      equip=self.equip))
     self._callback_()
     return