hpimdm/Main.py
def remove_interface(interface_name, hpim=False, membership=False, ipv4=True, ipv6=False):
    """
    Remove HPIM-DM/IGMP interface
    """
    if interface_name == "*":
        for interface_name in netifaces.interfaces():
            remove_interface(interface_name, hpim, membership, ipv4, ipv6)
        return

    if ipv4 and kernel is not None:
        kernel.remove_interface(interface_name, hpim=hpim, membership=membership)
    if ipv6 and kernel_v6 is not None:
        kernel_v6.remove_interface(interface_name, hpim=hpim, membership=membership)

    Remove HPIM-DM/IGMP interface
    
Remove HPIM-DM/IGMP interface
Remove HPIM - DM / IGMP interface
def remove_interface(interface_name, hpim=False, membership=False, ipv4=True, ipv6=False):
    if interface_name == "*":
        for interface_name in netifaces.interfaces():
            remove_interface(interface_name, hpim, membership, ipv4, ipv6)
        return
    if ipv4 and kernel is not None:
        kernel.remove_interface(interface_name, hpim=hpim, membership=membership)
    if ipv6 and kernel_v6 is not None:
        kernel_v6.remove_interface(interface_name, hpim=hpim, membership=membership)
def remove_interface ( interface_name , hpim = False , membership = False , ipv4 = True , ipv6 = False ) : if interface_name == "*" : for interface_name in netifaces . interfaces ( ) : remove_interface ( interface_name , hpim , membership , ipv4 , ipv6 ) return if ipv4 and kernel is not None : kernel . remove_interface ( interface_name , hpim = hpim , membership = membership ) if ipv6 and kernel_v6 is not None : kernel_v6 . remove_interface ( interface_name , hpim = hpim , membership = membership )
Remove HPIM-DM/IGMP interface
Remove HPIM - DM / IGMP interface
"""
    Remove HPIM-DM/IGMP interface
    """
interface_name
hpim
membership
ipv4
ipv6