Skip to content

Commit

Permalink
added prefix for xr
Browse files Browse the repository at this point in the history
  • Loading branch information
tahigash committed Jul 29, 2022
1 parent 55ad7d9 commit b23f981
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cisco_gnmi/xr.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def subscribe_xpaths(
sample_interval=Client._NS_IN_S * 10,
suppress_redundant=False,
heartbeat_interval=None,
prefix=None,
):
"""A convenience wrapper of subscribe() which aids in building of SubscriptionRequest
with request as subscribe SubscriptionList. This method accepts an iterable of simply xpath strings,
Expand Down Expand Up @@ -296,6 +297,8 @@ def subscribe_xpaths(
Specifies the maximum allowable silent period in nanoseconds when
suppress_redundant is in use. The target should send a value at least once
in the period specified.
prefix: proto.Path, optional
Prefix path that can be used as a general path to prepend to all Path elements. (might not be supported on XR)
Returns
-------
Expand Down Expand Up @@ -336,6 +339,7 @@ def subscribe_xpaths(
sample_interval,
suppress_redundant,
heartbeat_interval,
prefix,
)

@classmethod
Expand Down

0 comments on commit b23f981

Please sign in to comment.