File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,12 @@ def gnmi_subscribe():
113113 default = "SAMPLE" ,
114114 choices = proto .gnmi_pb2 .SubscriptionMode .keys (),
115115 )
116+ parser .add_argument (
117+ "-req_mode" ,
118+ help = "SubscriptionList.Mode mode for Subscriptions. Defaults to STREAM." ,
119+ default = "STREAM" ,
120+ choices = proto .gnmi_pb2 .SubscriptionList .Mode .keys (),
121+ )
116122 parser .add_argument (
117123 "-suppress_redundant" ,
118124 help = "Suppress redundant information in Subscription." ,
@@ -159,6 +165,8 @@ def gnmi_subscribe():
159165 kwargs ["sample_interval" ] = args .interval * int (1e9 )
160166 if args .mode :
161167 kwargs ["sub_mode" ] = args .mode
168+ if args .req_mode :
169+ kwargs ["request_mode" ] = args .req_mode
162170 if args .suppress_redundant :
163171 kwargs ["suppress_redundant" ] = args .suppress_redundant
164172 if args .heartbeat_interval :
You can’t perform that action at this time.
0 commit comments