From 616e62b347b0390732e0ecf87a53dd6cde575d40 Mon Sep 17 00:00:00 2001 From: SOHAN TIRPUDE Date: Mon, 19 Aug 2024 20:13:05 +0530 Subject: [PATCH 1/2] setting default values --- ncdiff/src/yang/ncdiff/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ncdiff/src/yang/ncdiff/config.py b/ncdiff/src/yang/ncdiff/config.py index f75f430..1f1209b 100755 --- a/ncdiff/src/yang/ncdiff/config.py +++ b/ncdiff/src/yang/ncdiff/config.py @@ -598,7 +598,10 @@ def __str__(self): def __neg__(self): return ConfigDelta(config_src=self.config_dst, - config_dst=self.config_src) + config_dst=self.config_src, + preferred_create=self.preferred_create, + preferred_replace=self.preferred_replace, + preferred_delete=self.preferred_delete) def __pos__(self): return self From 54eb23cdf4519999748b12900e1497cb8d611827 Mon Sep 17 00:00:00 2001 From: SOHAN TIRPUDE Date: Thu, 29 Aug 2024 00:03:36 +0530 Subject: [PATCH 2/2] added changelog --- .../changelog_modify_ConfigDelta_20240828235821.rst | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 ncdiff/docs/changelog/changelog_modify_ConfigDelta_20240828235821.rst diff --git a/ncdiff/docs/changelog/changelog_modify_ConfigDelta_20240828235821.rst b/ncdiff/docs/changelog/changelog_modify_ConfigDelta_20240828235821.rst new file mode 100644 index 0000000..5624612 --- /dev/null +++ b/ncdiff/docs/changelog/changelog_modify_ConfigDelta_20240828235821.rst @@ -0,0 +1,7 @@ +-------------------------------------------------------------------------------- + Fix +-------------------------------------------------------------------------------- +* yang.ncdiff + * Modified ConfigDelta: + * Updated __neg__ to pass default values of preferred_create, preferred_replace and preferred_delete while creating ConfigDelta object +