def get_env_spec(self, filters=None):
spec = {<EOL>'<STR_LIT>':<EOL>{<EOL>vm_name: deepcopy(vm_object.spec)<EOL>for vm_name, vm_object in self._vms.viewitems()<EOL>},<EOL>'<STR_LIT>':<EOL>{<EOL>net_name: deepcopy(net_object.spec)<EOL>for net_name, net_object in self._nets.viewitems()<EOL>}<EOL>}<EOL>if filters:<EOL><INDENT>utils.filter_spec(spec, filters)<EOL><DEDENT>return spec<EOL>
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