a_frame/utils/action_providers/SSHRemoteExecution.py
def execute_template(self, template):
        """
        switches based on request_type chosen from template configuration

        :param template:
        :return: String results from the endpoint netconf subsystem
        """

        # let's ensure we don't have silly dos style line breaks
        template = template.replace("\r\n", "\n")
        template = template.replace("\r", "\n")

        if self.request_type == "scp":
            return self.scp_template(template)
        elif self.request_type == "scp_and_execute":
            # first copy over the template
            self.scp_template(template)
            # this will update the file_path if necessary
            # so, now let's just call execute_cli on the file_path
            return self.execute_cli(self.file_path)
        else:
            return self.execute_cli(template)

        switches based on request_type chosen from template configuration

        :param template:
        :return: String results from the endpoint netconf subsystem
        
switches based on request_type chosen from template configuration
switches based on request_type chosen from template configuration
def execute_template(self, template):
        template = template.replace("\r\n", "\n")
        template = template.replace("\r", "\n")
        if self.request_type == "scp":
            return self.scp_template(template)
        elif self.request_type == "scp_and_execute":
            self.scp_template(template)
            return self.execute_cli(self.file_path)
        else:
            return self.execute_cli(template)
def execute_template ( self , template ) : template = template . replace ( "\r\n" , "\n" ) template = template . replace ( "\r" , "\n" ) if self . request_type == "scp" : return self . scp_template ( template ) elif self . request_type == "scp_and_execute" : self . scp_template ( template ) return self . execute_cli ( self . file_path ) else : return self . execute_cli ( template )
switches based on request_type chosen from template configuration
switches based on request_type chosen from template configuration
"""
        switches based on request_type chosen from template configuration

        :param template:
        :return: String results from the endpoint netconf subsystem
        """ # let's ensure we don't have silly dos style line breaks # first copy over the template # this will update the file_path if necessary # so, now let's just call execute_cli on the file_path
String results from the endpoint netconf subsystem
String results from the endpoint netconf subsystem
self
template
None