mirror of
https://github.com/espressif/openthread.git
synced 2026-08-29 21:39:54 +00:00
[otci] fix parse dataset security policy (#6661)
This commit is contained in:
@@ -1683,7 +1683,7 @@ class OTCI(object):
|
||||
elif key == 'PSKc':
|
||||
dataset['pskc'] = val
|
||||
elif key == 'Security Policy':
|
||||
rotation_time, flags = val.split(' ')
|
||||
rotation_time, flags = val.split(', ') if ', ' in val else val.split(' ')
|
||||
rotation_time = int(rotation_time)
|
||||
dataset['security_policy'] = SecurityPolicy(rotation_time, flags)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user