code: def do_get_logical_switch_config(self, line):
          
  
          def f(p, args):
              try:
                  source, lsw = args
              except:
                  print("argument error")
                  return
              o = p.get_config(source)
              for l in o.logical_switches.switch:
                  if l.id != lsw:
                      continue
                  print(l.id)
                  for k in self._lsw_settings:
                      try:
                          v = getattr(l, k)
                      except AttributeError:
                          continue
                      print('%s %s' % (k, v))
  
          self._request(line, f)
docs: get_logical_switch_config <peer> <source> <logical switch>