??????????????
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 m Z ddl m Z ddl mZddlmZmZddlmZdd lmZdd lmZmZd efd „ƒYZdS( i(tabsolute_importtdivisiontprint_functions --- cliconf: voss short_description: Use voss cliconf to run command on Extreme VOSS platform description: - This voss plugin provides low level abstraction apis for sending and receiving CLI commands from Extreme VOSS network devices. version_added: "2.7" N(tAnsibleConnectionFailure(tto_text(tMapping(t NetworkConfigtdumps(tto_list(tVossNetworkConfig(t CliconfBaset enable_modetCliconfcB`sͺeZedd d d„ƒZd d dd d dd„Zed ed d d„ƒZd d eeed„Z d„Z d„Z d„Z d „Z d ed „Zd „ZRS( trunningcC`s”|dkrtd|ƒ‚n|r8td|ƒ‚n|sGg}n|dkrd}|djt|ƒƒ7}|jƒ}nd}|j|ƒS( NR tstartups/fetching configuration from %s is not supporteds1'format' value %s is not supported for get_configsshow running-config t smore /intflash/config.cfg(srunningR(t ValueErrortjoinRtstript send_command(tselftsourcetflagstformattcmd((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/voss.pyt get_config.s   tlinec C`sbi}|jƒ}|jƒ} |dkrC|drCtdƒ‚n|| dkrytd|dj| dƒfƒ‚n|| dkr―td|dj| dƒfƒ‚ntdd d |ƒ} | j|ƒ|r"|d kr"tdd d |d |ƒ} | j| d |d|d|ƒ} n | j} | r@t | dƒnd|d<||d<||d<|S(s. Generate diff between candidate and running configuration. If the remote host supports onbox diff capabilities ie. supports_onbox_diff in that case candidate and running configurations are not required to be passed as argument. In case if onbox diff capability is not supported candidate argument is mandatory and running argument is optional. :param candidate: The configuration which is expected to be present on remote host. :param running: The base configuration which is used to generate diff. :param diff_match: Instructs how to match the candidate configuration with current device configuration Valid values are 'line', 'strict', 'exact', 'none'. 'line' - commands are matched line by line 'strict' - command lines are matched with respect to position 'exact' - command lines must be an equal match 'none' - will not compare the candidate configuration with the running configuration :param diff_ignore_lines: Use this argument to specify one or more lines that should be ignored during the diff. This is used for lines in the configuration that are automatically updated by the system. This argument takes a list of regular expressions or exact line matches. :param path: The ordered set of parents that uniquely identify the section or hierarchy the commands should be checked against. If the parents argument is omitted, the commands are checked against the set of top level or global commands. :param diff_replace: Instructs on the way to perform the configuration on the device. If the replace argument is set to I(line) then the modified lines are pushed to the device in configuration mode. If the replace argument is set to I(block) then the entire command block is pushed to the device in configuration mode if any line is not correct. :return: Configuration diff in json format. { 'config_diff': '', } tsupports_generate_diffs4candidate configuration is required to generate difft diff_matchs0'match' value %s in invalid, valid values are %ss, t diff_replaces2'replace' value %s in invalid, valid values are %stindentit ignore_linestnonetcontentstpathtmatchtreplacetcommandstt config_difft diff_pathN( tget_device_operationstget_option_valuestNoneRRR tloadt differencetitemsR( Rt candidateR Rtdiff_ignore_linesR"Rtdifftdevice_operationst option_valuest candidate_objt running_objtconfigdiffobjs((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/voss.pytget_diffAs&"  && $   c C`si}|jƒ}|j|||||ƒg}g}|rά|jdƒxt|ƒD]q} t| tƒs|i| d6} n| d} | dkrW| ddkrW|j|j| ƒ|j| ƒqWqWW|jdƒn tdƒ‚||d<||d<|S( Nsconfigure terminaltcommandtendit!scheck mode is not supportedtrequesttresponse(R)tcheck_edit_config_capabilityRRt isinstanceRtappendR( RR/tcommitR$tcommenttrespt operationstresultstrequestsRR((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/voss.pyt edit_config‚s&      c C`s.|jd|d|d|d|d|d|ƒS(NR8tprompttanswertsendonlytnewlinet check_all(R(RR8RGRHRIRJRK((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/voss.pytgetscC`sΘi}d|d<|jddƒ}t|ddƒjƒ}tjd|ƒ}|rh|jdƒ|d RtpopRRtgetattrR?(RR%tcheck_rct responsesRRktoutte((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/voss.pyRmΣs"  cC`sdS(Ntverbose((R((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/voss.pyRnλsN(t__name__t __module__R R+RR7ReRFRfRLRZR)R*RpRmRn(((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/voss.pyR ,sA    (t __future__RRRttypet __metaclass__t DOCUMENTATIONRTRrtansible.errorsRtansible.module_utils._textRt/ansible.module_utils.common._collections_compatRt*ansible.module_utils.network.common.configRRt)ansible.module_utils.network.common.utilsRt&ansible.module_utils.network.voss.vossR tansible.plugins.cliconfR R R (((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/voss.pyts