def get_commands_list(self, **kwargs):
     prepared_commands = CiscoInterface.get_commands_list(self, **kwargs)
     for command, value in kwargs.items():
         if command in Mgmt.COMMANDS_TEMPLATE:
             command_tamplate = Mgmt.COMMANDS_TEMPLATE[command]
             prepared_commands.append(CommandTemplateValidator.get_validate_list(command_tamplate, value))
     return prepared_commands
    def get_commands_list(self, **kwargs):
        prepared_commands = CiscoInterface.get_commands_list(self, **kwargs)

        for command, value in kwargs.items():
            if command in PortChannel.COMMANDS_TEMPLATE:
                command_tamplate = PortChannel.COMMANDS_TEMPLATE[command]

                if 'allow_trunk_vlan' in command:
                    prepared_commands.append('switchport')

                prepared_commands.append(CommandTemplateValidator.get_validate_list(command_tamplate, value))

        return prepared_commands