(net_if, ip_addr, verbose)
Set the IP of the DVB network interface

    Args:
        net_if    : DVB network interface name
        ip_addr   : Target IP address for the DVB interface slash subnet mask
        verbose   : Controls verbosity
Set the IP of the DVB network interface
Set the IP of the DVB network interface
def _set_ip(net_if, ip_addr, verbose):
    """Set the IP of the DVB network interface

    Args:
        net_if    : DVB network interface name
        ip_addr   : Target IP address for the DVB interface slash subnet mask
        verbose   : Controls verbosity

    """
    inet_if = IPv4Interface(ip_addr)

    # Flush previous IP
    if (runner.dry):
        print("Flush any IP address from interface {}:\n".format(net_if))
    runner.run(["ip", "address", "flush", "dev", net_if], root=True)
    if (runner.dry):
        print()

    # Configure new static IP
    _set_static_iface_ip(net_if, inet_if)
def _set_ip ( net_if , ip_addr , verbose ) : inet_if = IPv4Interface ( ip_addr ) # Flush previous IP if ( runner . dry ) : print ( "Flush any IP address from interface {}:\n" . format ( net_if ) ) runner . run ( [ "ip" , "address" , "flush" , "dev" , net_if ] , root = True ) if ( runner . dry ) : print ( ) # Configure new static IP _set_static_iface_ip ( net_if , inet_if )