Skip to content

Commit bee8e09

Browse files
committed
adding icdiff for diff feature
1 parent 08bedb6 commit bee8e09

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/jnpr/jsnapy/check.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import os
1212
from jnpr.jsnapy.sqlite_get import SqliteExtractXml
1313
import jnpr.jsnapy.snap_diff
14+
from icdiff import diff
1415
from jnpr.jsnapy.xml_comparator import XmlComparator
1516
import colorama
1617
import logging
@@ -229,7 +230,7 @@ def compare_diff(self, pre_snap_file, post_snap_file, check_from_sqlite):
229230
"""
230231
This function is called when --diff is used
231232
"""
232-
diff_obj = jnpr.jsnapy.snap_diff.Diff(self.log_detail)
233+
#diff_obj = jnpr.jsnapy.snap_diff.Diff(self.log_detail)
233234
if check_from_sqlite:
234235
diff_obj.diff_strings(
235236
pre_snap_file,
@@ -239,7 +240,7 @@ def compare_diff(self, pre_snap_file, post_snap_file, check_from_sqlite):
239240
else:
240241
if os.path.isfile(pre_snap_file) and os.path.isfile(
241242
post_snap_file):
242-
diff_obj.diff_files(pre_snap_file, post_snap_file)
243+
diff(pre_snap_file, post_snap_file)
243244
else:
244245
self.logger_check.info(
245246
colorama.Fore.RED +

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ junos-eznc
22
colorama
33
ConfigParser
44
pyparsing
5+
icdiff

0 commit comments

Comments
 (0)