[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:
Abtin Keshavarzian
2023-10-23 05:17:51 -07:00
committed by GitHub
parent a7643db4f2
commit 28f30b3ce8
15 changed files with 288 additions and 161 deletions
+2 -2
View File
@@ -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)):