code: def get_alignak_macros(self):
          
          macros = self.get_alignak_configuration(macros=True)
  
          sections = self._search_sections('pack.')
          for name, _ in list(sections.items()):
              section_macros = self.get_alignak_configuration(section=name, macros=True)
              macros.update(section_macros)
          return macros
docs: Get the Alignak macros.
  
          :return: a dict containing the Alignak macros