Ejemplo n.º 1
0
    def __init__(self, stateless_client, verbose=False):
        self.stateless_client = stateless_client
        TRexGeneralCmd.__init__(self)

        self.tui = trex_tui.TrexTUI(stateless_client)

        self.verbose = verbose

        self.intro = "\n-=TRex Console v{ver}=-\n".format(ver=__version__)
        self.intro += "\nType 'help' or '?' for supported actions\n"

        self.postcmd(False, "")
Ejemplo n.º 2
0
    def __init__(self, stateless_client, verbose = False):

        # cmd lock is used to make sure background job
        # of the console is not done while the user excutes commands
        self.cmd_lock = Lock()
        
        self.stateless_client = stateless_client

        TRexGeneralCmd.__init__(self)

        self.tui = trex_tui.TrexTUI(stateless_client)
        self.terminal = None

        self.verbose = verbose

        self.intro  = "\n-=TRex Console v{ver}=-\n".format(ver=__version__)
        self.intro += "\nType 'help' or '?' for supported actions\n"

        self.cap_mngr = CaptureManager(stateless_client, self.cmd_lock)

        self.postcmd(False, "")