Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Tahigash ncdiff sync and enhs #113

Merged
merged 21 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion connector/src/yang/connector/netconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,8 @@ def request(self, msg, timeout=30, return_obj=False):
exception.
timeout : `int`, optional
An optional keyed argument to set timeout value in seconds. Its
default value is 30 seconds.
default value is 30 seconds. If timeout is less than 30,
timeout will use the default of 30 seconds.
return_obj : `boolean`, optional
Normally a string is returned as a reply. In other cases, we may
want to return a RPCReply object, so we can access some attributes,
Expand Down Expand Up @@ -751,6 +752,9 @@ def request(self, msg, timeout=30, return_obj=False):
>>>
'''

if timeout <= self.timeout:
timeout = self.timeout

rpc = RawRPC(session=self.session,
device_handler=self._device_handler,
timeout=timeout,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--------------------------------------------------------------------------------
Fix
--------------------------------------------------------------------------------

* yang.connector
* updated `request` method
* yang.ncdiff
* synced PR2, 3, 5, 8, 13, 14, 19, 21, 24, 25, 26 and 27 from ncdiff repository
* updated NetconfCalculator class
* added diff_type `minimum-replace`
* added `add_attribute_at_depath` method
* added `add_attribute_by_xpath` method
* added `find_by_tags` method
* updated ConfigDelta class
* added `replace_xpath` argument
34 changes: 34 additions & 0 deletions ncdiff/docs/changelog/undistributed/template.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Templates
=========

--------------------------------------------------------------------------------
New
--------------------------------------------------------------------------------
* <Package>
* <Added|Removed|Modified> <Class>:
* <Description>

--------------------------------------------------------------------------------
Fix
--------------------------------------------------------------------------------
* <Package>
* <Added|Removed|Modified> <Class>:
* <Description>

Examples
========

--------------------------------------------------------------------------------
Fix
--------------------------------------------------------------------------------
* Log
* Modified Colours:
* Allowed for rainbow font options
* All output is now rainbow

--------------------------------------------------------------------------------
New
--------------------------------------------------------------------------------
* Log
* Added InvertedLogViewer:
* Enables inversion of LogViewer colours
Loading