parameters: (rt_table, interface)
docstring: Initialise routing table for this interface using routes
      from main table.
docstring_summary: Initialise routing table for this interface using routes
      from main table.
docstring_tokens: Initialise routing table for this interface using routes from main table .
function: def init_rttable(rt_table, interface):
      """Initialise routing table for this interface using routes
      from main table."""
      if rt_table in ["local", "main", "default"]:
          return
  
      stdout, _ = run(s.ip, "route", "list", "dev", interface)
      for line in stdout.split("\n"):
          args = ["route", "add"] + [x for x in line.split(" ") if x]
          args += ["dev", interface, "table", rt_table]
          run(s.ip, *args)
function_tokens: def init_rttable ( rt_table , interface ) : if rt_table in [ "local" , "main" , "default" ] : return stdout , _ = run ( s . ip , "route" , "list" , "dev" , interface ) for line in stdout . split ( "\n" ) : args = [ "route" , "add" ] + [ x for x in line . split ( " " ) if x ] args += [ "dev" , interface , "table" , rt_table ] run ( s . ip , * args )