code: def do_list_logical_switch(self, line):
          
  
          def f(p, args):
              o = p.get()
              for s in o.logical_switches.switch:
                  print('%s %s' % (s.id, s.datapath_id))
  
          self._request(line, f)
docs: list_logical_switch <peer>