mirror of
https://github.com/espressif/openthread.git
synced 2026-09-06 17:20:09 +00:00
[cli] add "dataset active|pending -ns" support (#11518)
This CLI command argument "-ns" prints out the dataset fields and redact the sensitive values, including the network key and PSKc fields.
This commit is contained in:
@@ -45,6 +45,17 @@ expect -re {Network Name: [^\r\n]+}
|
||||
expect -re {PAN ID: 0x[0-9a-f]{4}}
|
||||
expect -re {PSKc: [0-9a-f]{32}}
|
||||
expect -re {Security Policy: \d+ o?n?r?c?b?}
|
||||
send "dataset active -ns\n"
|
||||
expect -re {Active Timestamp: \d+}
|
||||
expect -re {Channel: (\d+)}
|
||||
expect -re {Channel Mask: 0x[0-9a-f]{8}}
|
||||
expect -re {Ext PAN ID: [0-9a-f]{16}}
|
||||
expect -re {Mesh Local Prefix: ([0-9a-f]{1,4}:){3}[0-9a-f]{1,4}::\/64}
|
||||
expect -re {Network Key: \[Redacted\]}
|
||||
expect -re {Network Name: [^\r\n]+}
|
||||
expect -re {PAN ID: 0x[0-9a-f]{4}}
|
||||
expect -re {PSKc: \[Redacted\]}
|
||||
expect -re {Security Policy: \d+ o?n?r?c?b?}
|
||||
send "dataset pending\n"
|
||||
expect "Error 23: NotFound"
|
||||
send "dataset init active\n"
|
||||
|
||||
Reference in New Issue
Block a user