??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó àUdac@`s{ddlmZmZmZeZdZddlZddlZddl Z ddl m Z m Z ddl mZmZmZddlmZddlmZmZddlmZdd lmZmZyVdd lmZdd lmZdd lm Z dd l!m"Z"m#Z#e$Z%dZ'Wn%e(e)fk rGZ*e+Z%e*Z'nXej,dƒj-ej.ƒdefd„ƒYZ/dS(i(tabsolute_importtdivisiontprint_functionsó --- author: Ansible Networking Team connection: netconf short_description: Provides a persistent connection using the netconf protocol description: - This connection plugin provides a connection to remote devices over the SSH NETCONF subsystem. This connection plugin is typically used by network devices for sending and receiving RPC calls over NETCONF. - Note this connection plugin requires ncclient to be installed on the local Ansible controller. version_added: "2.3" requirements: - ncclient options: host: description: - Specifies the remote device FQDN or IP address to establish the SSH connection to. default: inventory_hostname vars: - name: ansible_host port: type: int description: - Specifies the port on the remote device that listens for connections when establishing the SSH connection. default: 830 ini: - section: defaults key: remote_port env: - name: ANSIBLE_REMOTE_PORT vars: - name: ansible_port network_os: description: - Configures the device platform network operating system. This value is used to load a device specific netconf plugin. If this option is not configured (or set to C(auto)), then Ansible will attempt to guess the correct network_os to use. If it can not guess a network_os correctly it will use C(default). vars: - name: ansible_network_os remote_user: description: - The username used to authenticate to the remote device when the SSH connection is first established. If the remote_user is not specified, the connection will use the username of the logged in user. - Can be configured from the CLI via the C(--user) or C(-u) options. ini: - section: defaults key: remote_user env: - name: ANSIBLE_REMOTE_USER vars: - name: ansible_user password: description: - Configures the user password used to authenticate to the remote device when first establishing the SSH connection. vars: - name: ansible_password - name: ansible_ssh_pass - name: ansible_ssh_password - name: ansible_netconf_password private_key_file: description: - The private SSH key or certificate file used to authenticate to the remote device when first establishing the SSH connection. ini: - section: defaults key: private_key_file env: - name: ANSIBLE_PRIVATE_KEY_FILE vars: - name: ansible_private_key_file timeout: type: int description: - Sets the connection time, in seconds, for communicating with the remote device. This timeout is used as the default timeout value when awaiting a response after issuing a call to a RPC. If the RPC does not return in timeout seconds, an error is generated. default: 120 look_for_keys: default: True description: - Enables looking for ssh keys in the usual locations for ssh keys (e.g. :file:`~/.ssh/id_*`). env: - name: ANSIBLE_PARAMIKO_LOOK_FOR_KEYS ini: - section: paramiko_connection key: look_for_keys type: boolean host_key_checking: description: 'Set this to "False" if you want to avoid host key checking by the underlying tools Ansible uses to connect to the host' type: boolean default: True env: - name: ANSIBLE_HOST_KEY_CHECKING - name: ANSIBLE_SSH_HOST_KEY_CHECKING - name: ANSIBLE_NETCONF_HOST_KEY_CHECKING ini: - section: defaults key: host_key_checking - section: paramiko_connection key: host_key_checking vars: - name: ansible_host_key_checking - name: ansible_ssh_host_key_checking - name: ansible_netconf_host_key_checking persistent_connect_timeout: type: int description: - Configures, in seconds, the amount of time to wait when trying to initially establish a persistent connection. If this value expires before the connection to the remote device is completed, the connection will fail. default: 30 ini: - section: persistent_connection key: connect_timeout env: - name: ANSIBLE_PERSISTENT_CONNECT_TIMEOUT vars: - name: ansible_connect_timeout persistent_command_timeout: type: int description: - Configures, in seconds, the amount of time to wait for a command to return from the remote device. If this timer is exceeded before the command returns, the connection plugin will raise an exception and close. default: 30 ini: - section: persistent_connection key: command_timeout env: - name: ANSIBLE_PERSISTENT_COMMAND_TIMEOUT vars: - name: ansible_command_timeout netconf_ssh_config: description: - This variable is used to enable bastion/jump host with netconf connection. If set to True the bastion/jump host ssh settings should be present in ~/.ssh/config file, alternatively it can be set to custom ssh configuration file path to read the bastion/jump host settings. ini: - section: netconf_connection key: ssh_config version_added: '2.7' env: - name: ANSIBLE_NETCONF_SSH_CONFIG vars: - name: ansible_netconf_ssh_config version_added: '2.7' persistent_log_messages: type: boolean description: - This flag will enable logging the command executed and response received from target device in the ansible log file. For this option to work 'log_path' ansible configuration option is required to be set to a file path with write access. - Be sure to fully understand the security implications of enabling this option as it could create a security vulnerability by logging sensitive information in log file. default: False ini: - section: persistent_connection key: log_messages env: - name: ANSIBLE_PERSISTENT_LOG_MESSAGES vars: - name: ansible_persistent_log_messages N(tAnsibleConnectionFailuret AnsibleError(tto_bytest to_nativetto_text(tmissing_required_lib(t BOOLEANS_TRUEtBOOLEANS_FALSE(tnetconf_loader(tNetworkConnectionBasetensure_connect(tmanager(tRPCError(tSSHUnknownHostError(tto_eletto_xmltncclientt ConnectioncB`sYeZdZdZeZd„Zded„Z e e d„ƒƒZ d„Z d„ZRS(sNetConf connectionstnetconfcO`s+tt|ƒj||||Ž|jp+d|_tj|j|ƒ|_|jr¨idd6|jjd6|jd6|_|j dd|jj|jj |jfƒnMtjd|ƒ|_idd6dd6|jd6|_|j d d |jƒ|j d d |jƒd|_ d|_ d|_dS( NtautoRttypetnametobjtvvvvs7loaded netconf plugin %s from path %s for network_os %stdefaulttdisplaysOunable to load netconf plugin for network_os %s, falling back to default plugintlogsnetwork_os is set to %s(tsuperRt__init__t _network_osR tgetRt _load_namet _sub_plugint queue_messaget_original_pathtNonet_managert key_filenamet _ssh_config(tselft play_contextt new_stdintargstkwargs((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/netconf.pyRÖs ' #!  cC`sµ|jr•tt|ddƒƒ}|dkr1dSy|jj|ƒ}WnDtk r}|jdtt|j ƒddƒƒ}t j |ƒSX|j St t|ƒj|||ƒSdS(s Sends the request to the node and returns the reply The method accepts two forms of request. The first form is as a byte string that represents xml string be send over netconf session. The second form is a json-rpc (2.0) byte string. terrorstsurrogate_or_strictsunable to parse requesttdataN(R'RRR&trpcRtinternal_errorRRtxmltjsontdumpstdata_xmlRRt exec_command(R*tcmdtin_datatsudoabletrequesttreplytexcterror((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/netconf.pyR8ìs  'cC`s|jS(N(R'(R*((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/netconf.pyRscC`spts+tdtdƒttƒfƒ‚n|jddƒt}|jjdk r\t }nt |jd|ƒ|jj p‡|j dƒ|_|jr·ttjj|jƒƒ|_n|j dƒ|_|jtkrät|_n|jtkrÿd|_n|jdkrcxRtjd tƒD];}|j|ƒ}|r!|jd d |ƒ||_q!q!Wn|jdkrŽ|jd d ƒd |_ny|jj dƒ}Wntk r½d }nX|jd d|ƒi|d6}yä|jjpñd}|jd d|jj||jj|jfƒtj d|jjd|d|jjd|jjd|jd|j dƒd|j dƒd|d|jj!d|j dƒd|jƒ |_"|j dƒ|j"_#WnOt$k rê}t%t|ƒƒ‚n+t&k r}td j'|jƒƒ‚nX|j"j(s%d(S|jdd$ƒt|_)t*t+|ƒj,ƒd%t-|j"j.d&d'ƒd"fS()Ns%s: %sRRs&ssh connection done, starting ncclientt allow_agenttprivate_key_filetnetconf_ssh_configRt class_onlytvvvsdiscovered network_os %ss7Unable to discover network_os. Falling back to default.Rtncclient_device_handlers'identified ncclient device handler: %s.Ri>sSESTABLISH NETCONF SSH CONNECTION FOR USER: %s on PORT %s TO %s WITH SSH_CONFIG = %sthosttporttusernametpasswordR(thostkey_verifythost_key_checkingt look_for_keyst device_paramsttimeouttpersistent_connect_timeoutt ssh_configtpersistent_command_timeouts*connection=netconf is not supported on {0}its not connecteds,ncclient manager object created successfullyiR/R0(iRRs not connected(/t HAS_NCCLIENTRRRtNCCLIENT_IMP_ERRR$tTruet _play_contextRIR&tFalsetsetattrRAt get_optionR(tstrtostpatht expanduserR)R R R R talltguess_network_osRtKeyErrorRGt remote_usert remote_addrRtconnectR@R't_timeoutRRt ImportErrortformatt connectedt _connectedRRt_connectRt session_id(R*R@tclst network_osRERMRGR>((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/netconf.pyRisr%  !       #        cC`s0|jr|jjƒntt|ƒjƒdS(N(R't close_sessionRRtclose(R*((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/netconf.pyRnVs N(t__name__t __module__t__doc__t transportRWthas_pipeliningRR&RUR8tpropertyR RRiRn(((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/netconf.pyRÐs  N(0t __future__RRRRt __metaclass__t DOCUMENTATIONR[tloggingR5tansible.errorsRRtansible.module_utils._textRRRtansible.module_utils.basicRt)ansible.module_utils.parsing.convert_boolR R tansible.plugins.loaderR tansible.plugins.connectionR R RRtncclient.operationsRtncclient.transport.errorsRt ncclient.xml_RRRURSR&RTRetAttributeErrorterrRWt getLoggertsetLeveltINFOR(((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/netconf.pyts.¯