hpimdm/Main.py
def list_state(ipv4=True, ipv6=False):
    """
    List IGMP and HPIM-DM state
    For IGMP/MLD list the state of each group, regarding each interface
    For HPIM-DM list all trees and state of each interface
    """
    state_text = ""
    if ipv4:
        state_text = "IGMP State:\n{}\n\n\n\nMulticast Routing State:\n{}"
    elif ipv6:
        state_text = "MLD State:\n{}\n\n\n\nMulticast Routing State:\n{}"
    else:
        return state_text

    return state_text.format(list_membership_state(ipv4, ipv6), list_routing_state(ipv4, ipv6))

    List IGMP and HPIM-DM state
    For IGMP/MLD list the state of each group, regarding each interface
    For HPIM-DM list all trees and state of each interface
    
List IGMP and HPIM-DM state
For IGMP/MLD list the state of each group, regarding each interface
For HPIM-DM list all trees and state of each interface
List IGMP and HPIM - DM state For IGMP / MLD list the state of each group regarding each interface For HPIM - DM list all trees and state of each interface
def list_state(ipv4=True, ipv6=False):
    state_text = ""
    if ipv4:
        state_text = "IGMP State:\n{}\n\n\n\nMulticast Routing State:\n{}"
    elif ipv6:
        state_text = "MLD State:\n{}\n\n\n\nMulticast Routing State:\n{}"
    else:
        return state_text
    return state_text.format(list_membership_state(ipv4, ipv6), list_routing_state(ipv4, ipv6))
def list_state ( ipv4 = True , ipv6 = False ) : state_text = "" if ipv4 : state_text = "IGMP State:\n{}\n\n\n\nMulticast Routing State:\n{}" elif ipv6 : state_text = "MLD State:\n{}\n\n\n\nMulticast Routing State:\n{}" else : return state_text return state_text . format ( list_membership_state ( ipv4 , ipv6 ) , list_routing_state ( ipv4 , ipv6 ) )
List IGMP and HPIM-DM state
For IGMP/MLD list the state of each group, regarding each interface
For HPIM-DM list all trees and state of each interface
List IGMP and HPIM - DM state For IGMP / MLD list the state of each group regarding each interface For HPIM - DM list all trees and state of each interface
"""
    List IGMP and HPIM-DM state
    For IGMP/MLD list the state of each group, regarding each interface
    For HPIM-DM list all trees and state of each interface
    """
ipv4
ipv6