
    VhR                     b    d dl mZmZmZ eZd dlZd dlZd dlZd dl	m
Z
 d dlmZ  G d de      Zy)    )absolute_importdivisionprint_functionN)AnsibleConnectionFailure)TerminalBasec            
          e Zd Z ej                  d       ej                  d      gZ ej                  d       ej                  d       ej                  dej                         ej                  dej                         ej                  dej                         ej                  dej                         ej                  d	ej                         ej                  d
      gZd Zy)TerminalModules!   [\r\n]?[\w]*\(.+\)?[>#\$](?:\s*)$s   User:s   % ?Errors   % ?Bad secrets   invalid inputs   incorrect usages    (?:incomplete|ambiguous) commands   connection timed outs   [^\r\n]+ not founds!   '[^']' +returned error code: ?\d+c                 @   	 d| j                   j                  j                  z   dz   | j                   j                  j                  z   dz   df}|D ]  }| j	                  |        y # t
        $ r- 	 | j	                  d       Y y # t
        $ r t        d      w xY ww xY w)Nz{"command": "z%", "prompt": "Password:", "answer": "z"}z${"command": "config paging disable"}s   config paging disablez!unable to set terminal parameters)_connection_play_contextremote_userpassword_exec_cli_commandr   )selfcommandscmds      m/home/dcms/DCMS/lib/python3.12/site-packages/ansible_collections/community/network/plugins/terminal/aireos.pyon_open_shellzTerminalModule.on_open_shell0   s    
	T'$*:*:*H*H*T*TTW~~((66??@BFG>@H   ,&&s+,' 	TT&&'?@+ T./RSST	Ts   A$A' '	B1BBBN)	__name__
__module____qualname__recompileterminal_stdout_reIterminal_stderr_rer        r   r	   r	      s     	

89

9 	

< 

$%

$bdd+

&-

7>

+RTT2

)2440

89	Tr   r	   )
__future__r   r   r   type__metaclass__jsonr   timeansible.errorsr   ansible.plugins.terminalr   r	   r   r   r   <module>r&      s0   & C B  	  3 1T\ Tr   