File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ def run(func, args):
283
283
n = nm .replace ("/" , "%2F" )
284
284
path = cc .Path (
285
285
"/restconf/data/openconfig-platform:components/component="
286
- + n )
286
+ + n + "/openconfig-platform-transceiver:transceiver" )
287
287
response = aa .get (path )
288
288
if not response .ok ():
289
289
print ((response .error_message ()))
@@ -293,7 +293,7 @@ def run(func, args):
293
293
continue
294
294
try :
295
295
xcvrInfo [nm ] = response .content [
296
- "openconfig-platform:component" ][ 0 ]
296
+ "openconfig-platform-transceiver:transceiver" ]
297
297
except :
298
298
xcvrInfo [nm ] = {}
299
299
@@ -303,8 +303,7 @@ def run(func, args):
303
303
key = lambda x : ifutils .name_to_int_val (x )):
304
304
d2 = OrderedDict ()
305
305
try :
306
- d = xcvrInfo [val ][
307
- "openconfig-platform-transceiver:transceiver" ]["state" ]
306
+ d = xcvrInfo [val ]["state" ]
308
307
for k in d :
309
308
a = k
310
309
b = d [k ]
You can’t perform that action at this time.
0 commit comments