diff --git a/tools/otci/otci/otci.py b/tools/otci/otci/otci.py index ed000dd84..e66b4aa06 100644 --- a/tools/otci/otci/otci.py +++ b/tools/otci/otci/otci.py @@ -1622,9 +1622,9 @@ class OTCI(object): routes = [] for line in output: line = line.split() - if line[1] == 's': - prefix, _, prf, rloc16 = line - stable = True + if len(line) == 4: + prefix, flags, prf, rloc16 = line + stable = 's' in flags else: prefix, prf, rloc16 = line stable = False