mirror of
https://github.com/espressif/openthread.git
synced 2026-08-19 00:49:53 +00:00
[srp-client] exclude non-preferred addresses in AutoAddress mode (#9642)
This commit updates the `AutoAddress` mode in `Srp::Client` to exclude any deprecated (non-preferred) address when registering host addresses. It also updates `test_srp_auto_host_address` to validate the new behavior.
This commit is contained in:
@@ -1880,8 +1880,8 @@ class NodeImpl:
|
||||
self.send_command(cmd)
|
||||
self._expect_done()
|
||||
|
||||
def get_addrs(self):
|
||||
self.send_command('ipaddr')
|
||||
def get_addrs(self, verbose=False):
|
||||
self.send_command('ipaddr' + (' -v' if verbose else ''))
|
||||
|
||||
return self._expect_results(r'\S+(:\S*)+')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user