(dvb_ifs, prompt=True, dry=False)
Disable reverse-path (RP) filtering for the DVB interfaces

    Args:
        dvb_ifs : list of DVB network interfaces
        prompt  : Whether to prompt user before applying a configuration
        dry     : Dry run mode
Disable reverse-path (RP) filtering for the DVB interfaces
Disable reverse - path ( RP ) filtering for the DVB interfaces
def set_filters(dvb_ifs, prompt=True, dry=False):
    """Disable reverse-path (RP) filtering for the DVB interfaces

    Args:
        dvb_ifs : list of DVB network interfaces
        prompt  : Whether to prompt user before applying a configuration
        dry     : Dry run mode

    """
    assert (isinstance(dvb_ifs, list))
    runner.set_dry(dry)
    util.print_header("Reverse Path Filters")

    # Check if the RP filters are already configured properly
    rp_filters_set = list()
    rp_filters_set.append(_read_filter("all", nodry=True) == 0)
    for dvb_if in dvb_ifs:
        rp_filters_set.append(_read_filter(dvb_if, nodry=True) == 0)

    if (all(rp_filters_set)):
        print("Current RP filtering configurations are already OK")
        print("Skipping...")
        return

    util.fill_print("It will be necessary to reconfigure some reverse path \
    (RP) filtering rules applied by the Linux kernel. This is required to \
    prevent the filtering of the one-way Blockstream Satellite traffic.")

    if (runner.dry):
        util.fill_print("The following command(s) would be executed to \
        reconfigure the RP filters:")

    if (runner.dry or (not prompt) or util.ask_yes_or_no("OK to proceed?")):
        _set_filters(dvb_ifs)
    else:
        print("RP filtering configuration cancelled")
def set_filters ( dvb_ifs , prompt = True , dry = False ) : assert ( isinstance ( dvb_ifs , list ) ) runner . set_dry ( dry ) util . print_header ( "Reverse Path Filters" ) # Check if the RP filters are already configured properly rp_filters_set = list ( ) rp_filters_set . append ( _read_filter ( "all" , nodry = True ) == 0 ) for dvb_if in dvb_ifs : rp_filters_set . append ( _read_filter ( dvb_if , nodry = True ) == 0 ) if ( all ( rp_filters_set ) ) : print ( "Current RP filtering configurations are already OK" ) print ( "Skipping..." ) return util . fill_print ( "It will be necessary to reconfigure some reverse path \
    (RP) filtering rules applied by the Linux kernel. This is required to \
    prevent the filtering of the one-way Blockstream Satellite traffic." ) if ( runner . dry ) : util . fill_print ( "The following command(s) would be executed to \
        reconfigure the RP filters:" ) if ( runner . dry or ( not prompt ) or util . ask_yes_or_no ( "OK to proceed?" ) ) : _set_filters ( dvb_ifs ) else : print ( "RP filtering configuration cancelled" )