Skip to content

Commit

Permalink
[spinel-cli] add prefix meshlocal set command (openthread#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhui authored Sep 30, 2022
1 parent 454dd9c commit b378b1f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spinel-cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,12 @@ def do_prefix(self, line):
self.prop_remove_value(SPINEL.PROP_THREAD_ON_MESH_NETS, arr,
str(len(arr)) + 's')

elif params[0] == "meshlocal":
arr += self.wpan_api.encode_fields('CbC', prefix.network.prefixlen)

self.prop_set_value(SPINEL.PROP_IPV6_ML_PREFIX, arr,
str(len(arr)) + 's')

print("Done")

def do_releaserouterid(self, line):
Expand Down

0 comments on commit b378b1f

Please sign in to comment.