mirror of
https://github.com/espressif/openthread.git
synced 2026-09-02 23:30:07 +00:00
[nedata] add API to retrieve Commissioning Dataset (#9551)
This commit adds `otNetDataGetCommissioningDataset()` as a public API to retrieve the Commissioning Dataset from the Network Data. It also updates CLI `netdata show` command to output the Commissioning Dataset information. The documentation in `README_NETDATA.md` and in `cli_network_data` are also updated. The test scripts that parse `netdata show` output are also updated.
This commit is contained in:
@@ -2336,8 +2336,8 @@ class NodeImpl:
|
||||
|
||||
def get_netdata(self):
|
||||
raw_netdata = self.netdata_show()
|
||||
netdata = {'Prefixes': [], 'Routes': [], 'Services': [], 'Contexts': []}
|
||||
key_list = ['Prefixes', 'Routes', 'Services', 'Contexts']
|
||||
netdata = {'Prefixes': [], 'Routes': [], 'Services': [], 'Contexts': [], 'Commissioning': []}
|
||||
key_list = ['Prefixes', 'Routes', 'Services', 'Contexts', 'Commissioning']
|
||||
key = None
|
||||
|
||||
for i in range(0, len(raw_netdata)):
|
||||
|
||||
Reference in New Issue
Block a user