Exemple #1
0
    def prepareSshKeys(self, duthost, ptfhost, creds):
        '''
            Prepares testbed ssh keys by generating ssh key on ptf host and adding this key to known_hosts on duthost
            This class-scope fixture runs once before test start

            Args:
                duthost (AnsibleHost): Device Under Test (DUT)
                ptfhost (AnsibleHost): Packet Test Framework (PTF)

            Returns:
                None
        '''
        prepareTestbedSshKeys(duthost, ptfhost, creds['sonicadmin_user'])
 def __prepareTestbedSshKeys(self):
     '''
     Prepares testbed ssh keys by generating ssh key on ptf host and adding this key to known_hosts on duthost
     '''
     prepareTestbedSshKeys(self.duthost, self.ptfhost,
                           self.rebootData['dut_username'])