def host_connect(): """ Handle host connectivity to DUT """ global DUT_CLIENT DUT_CLIENT = ssh.SSH(host=DUT_IP, user=DUT_USER, password=DUT_PWD) print("DUT Successfully Connected ..............................................[OK] \n ")
def setup(self): """ Performs Setup of the client. """ # Just connect to VM. self.client = ssh.SSH(host=self.dut, user=self.user, password=self.pwd) self.client.wait()
def tgen_setup(self): """ Setup the T-Gen Client """ # Just connect to VM. self.tgen_client = ssh.SSH(host=self.tgen, user=self.tgen_user, password=self.tgenpwd) self.tgen_client.wait()
def tgen_connect(): """ Handle Tgen Connection to Trex """ global TGEN_CLIENT TGEN_CLIENT = ssh.SSH(host=TGEN_IP, user=TGEN_USER, password=TGEN_PWD) print( "Traffic Generator Successfully Connected ...............................[OK] \n " )