octupus / octupus.o4n_diff / 3.0.7 / module / o4n_diff Ejecuta algoritmo Diff para analizar compliances. | "added in version" 3.0 of octupus.o4n_diff" Authors: Ed Scrimagliaoctupus.o4n_diff.o4n_diff (3.0.7) — module
Install with ansible-galaxy collection install octupus.o4n_diff:==3.0.7
collections: - name: octupus.o4n_diff version: 3.0.7
ejecuta algorintmo Diff para configuraciones o bloques de comandos (contexts)
muestra las lineas que fueron agregadas o eliminadas
muestra las lineas que hay que agregar o eliminar
current: description: archivo actual, config file o config context, a comparar contra original required: true type: string original: description: archivo origen o master config a comparar required: true type: string var_diff: description: diferencia a aplicar a los elementos de las acls, valor entre 0 y 9, predet 5 required: false type: int type_diff: choices: - config: ejecuta Diff, analiza lines to add y lines to remove contra Config Master - context: ejecuta Diff, analiza solo lines in context contra Config Master description: tipo de diff a ejecutar. required: false type: string match_type: choices: - full: Diff algorithm verifica que las lineas del Contexto existan exactamente en Device Configuration - include: Diff algorithm verifica que las lineas de Contexto esten inlcuidas en Device Configuration - var: Diffios algorithm verifica que las lineas de Contexto esten incluidas en Device Configuration, pueden incluirse variables en la comparacion description: tipo de match que el algorithm Diff ejecutara (type_diff=context) required: false type: string lines_in_context: description: cantidad de lineas que apareceran en el bloque contexto formado por @@ -XY, +XY @@ required: false type: string list_char_ignore: description: "lista con caracteres especiales a ignorar en la comparaci\xF3n" required: false type: list
output: description: - 1_ salida type diff config - 2_ salida type diff context match full - 3_ salida type diff context match include - 4_ salida type diff context match var - (salidas truncadas) salidadiff_common_context_match_full: results: - content: Diff_Results: context_name: ../files/G3_Acceso_Script_general.txt lines_to_add_config_file: - + - +service sequence-numbers - + - + - +aaa group server tacacs+ ISET - + server name ISET1 - + server name ISET2 - trunk... match_type: full original_context: - no service pad - '' - service timestamps debug datetime msec localtime show-timezone - service timestamps log datetime msec localtime show-timezone - service password-encryption - trunk... Total_execution_time: '0:00:00.009611' msg: Diff algorithm run successfully salidadiff_common_context_match_include: results: - content: Diff_Results: context_name: ../files/G3_Acceso_Script_general.txt lines_included: ? '' : - 'Line included in config line: Building configuration...' - 'Line included in config line: ' - 'Line included in config line: Current configuration with default configurations exposed : 49759 bytes' - 'Line included in config line: !' no service pad: - 'Line included in config line: no service pad to-xot' - 'Line included in config line: no service pad from-xot' - 'Line included in config line: no service pad cmns' - 'Line included in config line: no service pad' - trunk... lines_to_add_config_file: - aaa group server tacacs+ ISET - ' server name ISET1' - ' server name ISET2' - trunk... match_type: include original_context: - no service pad - '' - service timestamps debug datetime msec localtime show-timezone - service timestamps log datetime msec localtime show-timezone - trunk... Total_execution_time: '0:00:00.050088' msg: Diff algorithm run successfully salidadiff_common_context_match_var: results: - content: Diff_Results: context_name: ../files/G3_Acceso_Script_general_labo.txt delta_results: '--- baseline +++ comparison + 1: * Cisco in writing. * + 2: * IOSv is strictly limited to use for evaluation, demonstration and IOS * + 3: * Technical Advisory Center. Any use or disclosure, in whole or in part, * + 4: * education. IOSv is provided as-is and is not supported by Cisco''s * + 5: * of the IOSv Software or Documentation to any third party for any * + 6: * purposes is expressly prohibited except as otherwise authorized by * + 7: ************************************************** + 8: ************************************************************************** + 9: **************************************************************************^C + 10: Building configuration... + 11: Current configuration with default configurations exposed : 49759 bytes + 12: access-session vlan-assignment ignore-errors + 13: alias exec h help + 14: alias exec lo logout + 15: alias exec p ping + 16: alias exec r resume + 17: alias exec s show + 18: alias exec u undebug + 19: alias exec un undebug + 20: alias exec w where + 21: archive + trunk...' lines_difference: - '* Cisco in writing. *' - '' - Building configuration... - '' - 'Current configuration with default configurations exposed : 49759 bytes' - '' - access-session vlan-assignment ignore-errors - '' - trunk... - '' lines_to_add_config_file: '' match_type: var original_context: - no service pad - '' - service timestamps debug datetime msec localtime show-timezone - service timestamps log datetime msec localtime show-timezone - service password-encryption - '' - logging buffered 65535 informational - ' ' - trunk... Total_execution_time: '0:00:00.261768' msg: Diff algorithm run successfully salidadiff_config: content: Diff_Results: block_to_add: '-Current configuration with default configurations exposed : 49852 bytes -ip cef load-sharing algorithm universal CC1B726F ' block_to_del: '+Current configuration with default configurations exposed : 49759 bytes +ip cef load-sharing algorithm universal ECC34684 +ipv6' diff: '--- original +++ current @@ -1,8 +1,8 @@ Building configuration... -Current configuration with default configurations exposed ' lines_to_add: '-Current configuration with default configurations exposed : 49852 bytes -! ' lines_to_delete: '+Current configuration with default configurations exposed : 49759 bytes ' Total_execution_time: '0:00:00.016707' msg: ''