[netif] remove multicast promiscuous mode configuration (#10338)

Since 74c833b623 was introduced all IPv6
multicast packets are passed to the host. Previously used promiscuous
mode configuration is now unused. This commit removes the dead code and
corresponding elements as there is no use case for them at the moment
(and they can confuse a user).

Signed-off-by: Konrad Derda <[email protected]>
This commit is contained in:
Konrad Derda
2024-06-14 10:08:44 -07:00
committed by GitHub
parent 282f54c2a6
commit 8a8a4d8e31
11 changed files with 1 additions and 140 deletions
-12
View File
@@ -1946,18 +1946,6 @@ class OTCI(object):
"""Check if a IPv6 multicast address was subscribed by the Thread interface."""
return ip in self.get_ipmaddrs()
def get_ipmaddr_promiscuous(self) -> bool:
"""Get multicast promiscuous mode."""
return self.__parse_Enabled_or_Disabled(self.execute_command("ipmaddr promiscuous"))
def enable_ipmaddr_promiscuous(self):
"""Enable multicast promiscuous mode."""
self.execute_command('ipmaddr promiscuous enable')
def disable_ipmaddr_promiscuous(self):
"""Disable multicast promiscuous mode."""
self.execute_command('ipmaddr promiscuous disable')
def get_ipmaddr_llatn(self) -> Ip6Addr:
"""Get Link Local All Thread Nodes Multicast Address"""
return self.__parse_ip6addr(self.execute_command('ipmaddr llatn'))
-6
View File
@@ -257,12 +257,6 @@ class TestOTCI(unittest.TestCase):
logging.info("EID-to-RLOC cache: %r", leader.get_eidcache())
logging.info("ipmaddr promiscuous: %r", leader.get_ipmaddr_promiscuous())
leader.enable_ipmaddr_promiscuous()
self.assertTrue(leader.get_ipmaddr_promiscuous())
leader.disable_ipmaddr_promiscuous()
self.assertFalse(leader.get_ipmaddr_promiscuous())
logging.info("leader data: %r", leader.get_leader_data())
logging.info("leader neighbor list: %r", leader.get_neighbor_list())
logging.info("leader neighbor table: %r", leader.get_neighbor_table())