# pyats doesn’t parse “show class-map”

**URL:** <https://forum.ansible.com/t/pyats-doesn-t-parse-show-class-map/35419>\
**Category:** Ansible Project\
**Created:** [June 27, 2021, 11:24am UTC](https://forum.ansible.com/t/pyats-doesn-t-parse-show-class-map/35419 "2021-06-27T11:24:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![L\_Jankok](https://avatars.discourse-cdn.com/v4/letter/l/90db22/32.png) [@L\_Jankok](https://forum.ansible.com/u/L_Jankok)\
**Post date:** [June 27, 2021, 11:24am UTC](https://forum.ansible.com/t/pyats-doesn-t-parse-show-class-map/35419/1 "2021-06-27T11:24:47Z")

</div>

Hi There

I am testing the following task;

- name: Gather all class maps

ansible.utils.cli\_parse:

command: show class-map

parser:

name: ansible.netcommon.pyats

os: iosxe

set\_fact: cm

The task fails with the following output;

> TASK [Gather all class maps] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> fatal: [cat3560]: FAILED! =\> {“changed”: false, “msg”: “The pyats library return an error for ‘show class-map’ for ‘iosxe’. Error: Could not find parser for show class-map under (‘iosxe’,).”}

However, the command “show class-map” appears to have a parser.

[https://pubhub.devnetcloud.com/media/genie-feature-browser/docs/#/parsers/show%2520class-map%252C%2520show%2520class-map%2520%257Bclass\_map%257D](https://pubhub.devnetcloud.com/media/genie-feature-browser/docs/#/parsers/show%2520class-map%252C%2520show%2520class-map%2520%257Bclass_map%257D)

Am I missing a step here?

Regards,

Luc
