Skip to content

Commit 3a04376

Browse files
authored
Client class has "prefix" parameter so API fails
1 parent 34a961c commit 3a04376

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cisco_gnmi/nx.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ def subscribe_xpaths(
216216
sample_interval=Client._NS_IN_S * 10,
217217
suppress_redundant=False,
218218
heartbeat_interval=None,
219+
prefix=None,
219220
):
220221
"""A convenience wrapper of subscribe() which aids in building of SubscriptionRequest
221222
with request as subscribe SubscriptionList. This method accepts an iterable of simply xpath strings,
@@ -254,6 +255,8 @@ def subscribe_xpaths(
254255
Specifies the maximum allowable silent period in nanoseconds when
255256
suppress_redundant is in use. The target should send a value at least once
256257
in the period specified.
258+
prefix: proto.Path, optional
259+
Prefix path that can be used as a general path to prepend to all Path elements. (not supported on NX)
257260
258261
Returns
259262
-------
@@ -294,6 +297,7 @@ def subscribe_xpaths(
294297
sample_interval,
295298
suppress_redundant,
296299
heartbeat_interval,
300+
prefix,
297301
)
298302

299303
@classmethod

0 commit comments

Comments
 (0)