(rt_table)
Check if specified routing table is defined.
Check if specified routing table is defined.
Check if specified routing table is defined .
def rt_available(rt_table):
    """Check if specified routing table is defined."""
    try:
        subprocess.check_call([s.ip, "route", "list", "table", rt_table],
                              stdout=subprocess.PIPE,
                              stderr=subprocess.PIPE)
        return True
    except subprocess.CalledProcessError:
        return False
def rt_available ( rt_table ) : try : subprocess . check_call ( [ s . ip , "route" , "list" , "table" , rt_table ] , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) return True except subprocess . CalledProcessError : return False