[mac-filter] change whitelist/blacklist to allowlist/denylist (#5507)

To promote inclusivity and eliminate any unintentional bias.
This commit is contained in:
Jonathan Hui
2020-09-11 16:03:39 -07:00
committed by GitHub
parent 11faac0aad
commit 5bffd8bc4d
162 changed files with 970 additions and 981 deletions
+6 -6
View File
@@ -444,22 +444,22 @@ class Node:
self.send_command(cmd)
self._expect('Done')
def clear_whitelist(self):
def clear_allowlist(self):
cmd = 'macfilter addr clear'
self.send_command(cmd)
self._expect('Done')
def enable_whitelist(self):
cmd = 'macfilter addr whitelist'
def enable_allowlist(self):
cmd = 'macfilter addr allowlist'
self.send_command(cmd)
self._expect('Done')
def disable_whitelist(self):
def disable_allowlist(self):
cmd = 'macfilter addr disable'
self.send_command(cmd)
self._expect('Done')
def add_whitelist(self, addr, rssi=None):
def add_allowlist(self, addr, rssi=None):
cmd = 'macfilter addr add %s' % addr
if rssi is not None:
@@ -618,7 +618,7 @@ class Node:
self.send_command(cmd)
self._expect('Done')
def remove_whitelist(self, addr):
def remove_allowlist(self, addr):
cmd = 'macfilter addr remove %s' % addr
self.send_command(cmd)
self._expect('Done')