Skip to content

Commit adecfa6

Browse files
committed
Fix subscription constraints
1 parent a689c10 commit adecfa6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cisco_gnmi/xe.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,11 @@ def subscribe_xpaths(
248248
-------
249249
subscribe()
250250
"""
251+
supported_request_modes = ["STREAM"]
251252
request_mode = "STREAM"
252-
supported_encodings = ["JSON", "JSON_IETF"]
253+
supported_sub_modes = ["SAMPLE"]
253254
sub_mode = "SAMPLE"
255+
supported_encodings = ["JSON", "JSON_IETF"]
254256
subscription_list = proto.gnmi_pb2.SubscriptionList()
255257
subscription_list.mode = util.validate_proto_enum(
256258
"mode",

0 commit comments

Comments
 (0)