docs: def get_env_spec(self, filters=None):
          """
          Get the spec of the current env.
          The spec will hold the info about all the domains and
          networks associated with this env.
          Args:
              filters (list): list of paths to keys that should be removed from
                  the init file
          Returns:
              dict: the spec of the current env
          """
          spec = {
              'domains':
                  {
                      vm_name: deepcopy(vm_object.spec)
                      for vm_name, vm_object in self._vms.viewitems()
                  },
              'nets':
                  {
                      net_name: deepcopy(net_object.spec)
                      for net_name, net_object in self._nets.viewitems()
                  }
          }
  
          if filters:
              utils.filter_spec(spec, filters)
  
          return spec