File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,7 @@ def subscribe_oper_data_request(
401
401
callback : OperDataCallbackType ,
402
402
* ,
403
403
no_thread : bool = False ,
404
+ oper_merge : bool = False ,
404
405
private_data : Any = None ,
405
406
asyncio_register : bool = False ,
406
407
strict : bool = False ,
@@ -420,6 +421,11 @@ def subscribe_oper_data_request(
420
421
:arg no_thread:
421
422
There will be no thread created for handling this subscription meaning no
422
423
event will be processed! Default to `True` if asyncio_register is `True`.
424
+ :arg oper_merge:
425
+ Instead of removing any previous existing matching data before
426
+ getting them from an operational subscription callback, keep
427
+ them. Then the returned data are merged into the existing
428
+ data. Valid only for operational subscriptions.
423
429
:arg private_data:
424
430
Private context passed to the callback function, opaque to sysrepo.
425
431
:arg asyncio_register:
@@ -448,7 +454,7 @@ def subscribe_oper_data_request(
448
454
449
455
if asyncio_register :
450
456
no_thread = True # we manage our own event loop
451
- flags = _subscribe_flags (no_thread = no_thread )
457
+ flags = _subscribe_flags (no_thread = no_thread , oper_merge = oper_merge )
452
458
453
459
check_call (
454
460
lib .sr_oper_get_subscribe ,
You can’t perform that action at this time.
0 commit comments