{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible-network/network-engine/issues/200","repository_url":"https://api.github.com/repos/ansible-network/network-engine","labels_url":"https://api.github.com/repos/ansible-network/network-engine/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/ansible-network/network-engine/issues/200/comments","events_url":"https://api.github.com/repos/ansible-network/network-engine/issues/200/events","html_url":"https://github.com/ansible-network/network-engine/issues/200","id":383246743,"node_id":"MDU6SXNzdWUzODMyNDY3NDM=","number":200,"title":"No example how to use textfsm with network-engine.","user":{"login":"jwoogee","id":26926379,"node_id":"MDQ6VXNlcjI2OTI2Mzc5","avatar_url":"https://avatars3.githubusercontent.com/u/26926379?v=4","gravatar_id":"","url":"https://api.github.com/users/jwoogee","html_url":"https://github.com/jwoogee","followers_url":"https://api.github.com/users/jwoogee/followers","following_url":"https://api.github.com/users/jwoogee/following{/other_user}","gists_url":"https://api.github.com/users/jwoogee/gists{/gist_id}","starred_url":"https://api.github.com/users/jwoogee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwoogee/subscriptions","organizations_url":"https://api.github.com/users/jwoogee/orgs","repos_url":"https://api.github.com/users/jwoogee/repos","events_url":"https://api.github.com/users/jwoogee/events{/privacy}","received_events_url":"https://api.github.com/users/jwoogee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"trishnaguha","id":13337039,"node_id":"MDQ6VXNlcjEzMzM3MDM5","avatar_url":"https://avatars2.githubusercontent.com/u/13337039?v=4","gravatar_id":"","url":"https://api.github.com/users/trishnaguha","html_url":"https://github.com/trishnaguha","followers_url":"https://api.github.com/users/trishnaguha/followers","following_url":"https://api.github.com/users/trishnaguha/following{/other_user}","gists_url":"https://api.github.com/users/trishnaguha/gists{/gist_id}","starred_url":"https://api.github.com/users/trishnaguha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trishnaguha/subscriptions","organizations_url":"https://api.github.com/users/trishnaguha/orgs","repos_url":"https://api.github.com/users/trishnaguha/repos","events_url":"https://api.github.com/users/trishnaguha/events{/privacy}","received_events_url":"https://api.github.com/users/trishnaguha/received_events","type":"User","site_admin":false},"assignees":[{"login":"trishnaguha","id":13337039,"node_id":"MDQ6VXNlcjEzMzM3MDM5","avatar_url":"https://avatars2.githubusercontent.com/u/13337039?v=4","gravatar_id":"","url":"https://api.github.com/users/trishnaguha","html_url":"https://github.com/trishnaguha","followers_url":"https://api.github.com/users/trishnaguha/followers","following_url":"https://api.github.com/users/trishnaguha/following{/other_user}","gists_url":"https://api.github.com/users/trishnaguha/gists{/gist_id}","starred_url":"https://api.github.com/users/trishnaguha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trishnaguha/subscriptions","organizations_url":"https://api.github.com/users/trishnaguha/orgs","repos_url":"https://api.github.com/users/trishnaguha/repos","events_url":"https://api.github.com/users/trishnaguha/events{/privacy}","received_events_url":"https://api.github.com/users/trishnaguha/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-11-21T18:34:29Z","updated_at":"2018-12-05T14:24:55Z","closed_at":"2018-12-05T14:24:55Z","author_association":"CONTRIBUTOR","body":"<!---\r\nVerify first that your issue/request is not already reported on GitHub.\r\nTest if the latest release, and devel branch are affected too.-->\r\n\r\n# ISSUE TYPE\r\n\r\n<!--- Pick one below and delete the rest -->\r\n\r\n- Documentation Report\r\n\r\n# ANSIBLE VERSION\r\n\r\n```\r\nansible --version\r\nansible 2.7.0\r\n  config file = /Users/z003gn3/ansible_config/ansible.cfg\r\n  configured module search path = [u'/Users/z003gn3/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /Users/z003gn3/virtualenvs/venv_lan_ansible/lib/python2.7/site-packages/ansible\r\n  executable location = /Users/z003gn3/virtualenvs/venv_lan_ansible/bin/ansible\r\n  python version = 2.7.10 (default, Oct  6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]\r\n\r\nansible-galaxy list | grep ansible.network\r\n\r\n- ansible-network.network-engine, v2.7.0\r\n- ansible-network.cisco_ios, v2.6.2\r\n\r\n```\r\n\r\n# Network OS\r\n\r\n- Operating System (inc version) of machine running Ansible\r\n- Network device make/model, including version\r\n\r\n# SUMMARY\r\n\r\n<!--- Explain the problem briefly -->\r\n\r\nI'm trying to use a textfsm template with network-engine to populate ansible_facts.  I cannot find documentation how to supply the fact name to supply, and the facts are not showing in ansible_facts.\r\n\r\nI added show_interfaces_status.template to parser_templates/cli folder.  I'm just not sure how to register that json dictionary now.\r\n\r\n# STEPS TO REPRODUCE\r\n\r\n<!--- For bugs, show exactly how to reproduce the problem, using a minimal test-case.\r\nFor new features, show how the feature would be used.\r\nPaste example playbooks or commands between quotes below -->\r\n\r\n```yaml\r\n\r\n# I added this to vars/get_facts_command_map.yaml\r\n- command: show interfaces status\r\n  parser: show_interfaces_status.template\r\n  groups:\r\n    - all\r\n    - default\r\n  engine: textfsm_parser\r\n\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n# EXPECTED RESULTS\r\n\r\nI expect ansible facts to be populated.\r\n<!--- What did you expect to happen when running the steps above? -->\r\n\r\n# ACTUAL RESULTS\r\n\r\ncommand runs without issue, but ansible_facts aren't updated.  It's pretty clear I'm not setting the facts through the course of this, but I don't know how I'm supposed to using textfsm vs command_parser.\r\n<!--- What actually happened? If possible run with extra verbosity (ansible-playbook -vvvv ...)\r\nPaste verbatim command output between quotes below -->\r\n\r\n```\r\n\r\n```\r\n"}}
{"actor":{"display_login":"trishnaguha"}}