??????????????
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 Z ddl m Z ddl mZddlmZddlmZddlmZmZdd lmZdd lmZmZdd lmZd efd „ƒYZdS(i(tabsolute_importtdivisiontprint_functions& --- author: Ruckus Wireless (@Commscope) cliconf: icx short_description: Use icx cliconf to run command on Ruckus ICX platform description: - This icx plugin provides low level abstraction APIs for sending and receiving CLI commands from Ruckus ICX network devices. version_added: "2.9" N(tchain(tAnsibleConnectionFailure(tto_text(t iteritems(t NetworkConfigtdumps(tto_list(t CliconfBaset enable_mode(tMappingtCliconfcB`sÝeZeddddd„ƒZddddddd„Zededdd„ƒZdddeded„Z dddd„Z d„Z d„Z d „Z d „Zdd ed „Zded „Zd„Zd„ZRS(trunningcC`s¨|d krtd|ƒ‚n|r8td|ƒ‚n|sGg}n|tkrWdS|dkrld}nd}|djt|ƒƒ7}|jƒ}|j|ƒSdS( NRtstartups/fetching configuration from %s is not supporteds1'format' value %s is not supported for get_configtsshow running-config sshow configuration t (srunningR(t ValueErrortFalsetjoinR tstript send_command(tselftsourcetflagstformattcomparetcmd((s?/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/icx.pyt get_config$s      tlinec C`s i}|jƒ}|jƒ} |dkrC|drCtdƒ‚n|| dkrytd|dj| dƒfƒ‚n|| dkr¯td|dj| dƒfƒ‚ntdd ƒ} |j|ƒ\} } | j| ƒ|rF|d krF|j|ƒ\} }tdd d | d |ƒ}| j|d |d|d|ƒ}n| j }i}|rjt |dƒnd|d<|j | |ƒ}|r’|ni|d<|S(sS 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': '', 'banner_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 %stindentitnonetcontentst ignore_linestpathtmatchtreplacetcommandsRt config_difft banner_diffN( tget_device_operationstget_option_valuestNoneRRRt_extract_bannerstloadt differencetitemsRt _diff_banners(Rt candidateRR tdiff_ignore_linesR&R!tdifftdevice_operationst option_valuest candidate_objtwant_srct want_bannersthave_srct have_bannerst running_objtconfigdiffobjstbanners((s?/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/icx.pytget_diff<s,#  && $ c C`sCi}|jƒ}|j|||||ƒg}g}|r|jjƒ} d| kspd| kspd| kr€|jdƒn|jdƒxt|ƒD]q} t| tƒs¿i| d6} n| d} | dkrš| ddkrš|j|j| ƒ|j| ƒqšqšW|jdƒn t d ƒ‚||d <||d <|S( Ns (config-ifs(configs(config-lag-iftendsconfigure terminaltcommandit!scheck mode is not supportedtrequesttresponse( R,tcheck_edit_config_capabilityt _connectiont get_promptRR t isinstanceR tappendR( RR4tcommitR(tcommenttrespt operationstresultstrequeststpromptRR((s?/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/icx.pyt edit_config‚s, $     c C`sV|stdƒ‚n|r.td|ƒ‚n|jd|d|d|d|d|ƒS(Ns(must provide value of command to executes*'output' value %s is not supported for getRCRRtanswertsendonlyt check_all(RR(RRCRRRTRUtoutputRV((s?/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/icx.pytget¢s c C`sy|stdƒ‚nddg}|dkrE||jjjg}n ||g}|jd|d|d|dtdtƒS( Ns(must provide value of command to executes User name:s Password:RCRRRTRURV(RR.RHt _play_contexttpasswordRRtTrue(RRCtscp_usertscp_passRRRT((s?/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/icx.pytscpªs   cC`sÝi}d|d<|jddƒ}t|ddƒjƒ}tjd|ƒ}|rq|jdƒjd ƒ|d s