(net_ifs, ip_addrs)
Check if IPs of one or multiple DVB network interface(s) are OK

    Args:
        net_ifs   : List of DVB network interface names
        ip_addrs  : List of IP addresses for the dvbnet interface's subnet mask
        verbose   : Controls verbosity
Check if IPs of one or multiple DVB network interface(s) are OK
Check if IPs of one or multiple DVB network interface ( s ) are OK
def check_ips(net_ifs, ip_addrs):
    """Check if IPs of one or multiple DVB network interface(s) are OK

    Args:
        net_ifs   : List of DVB network interface names
        ip_addrs  : List of IP addresses for the dvbnet interface's subnet mask
        verbose   : Controls verbosity

    """
    for net_if, ip_addr in zip(net_ifs, ip_addrs):
        has_ip, ip_ok = _check_ip(net_if, ip_addr)
        if (not has_ip):
            raise ValueError(
                "Interface {} does not have an IP address".format(net_if))
        elif (has_ip and not ip_ok):
            raise ValueError("Interface {} IP is not {}".format(
                net_if, ip_addr))
def check_ips ( net_ifs , ip_addrs ) : for net_if , ip_addr in zip ( net_ifs , ip_addrs ) : has_ip , ip_ok = _check_ip ( net_if , ip_addr ) if ( not has_ip ) : raise ValueError ( "Interface {} does not have an IP address" . format ( net_if ) ) elif ( has_ip and not ip_ok ) : raise ValueError ( "Interface {} IP is not {}" . format ( net_if , ip_addr ) )