cisco.ios icon indicating copy to clipboard operation
cisco.ios copied to clipboard

Return VRF data in ios_facts module

Open brandomando opened this issue 4 years ago • 5 comments

SUMMARY
  • Create a VRFs model in the returned facts to list the configured VRFs on a device
  • Include VRF forwarding in ios_facts interfaces model
ISSUE TYPE
  • Feature Idea
COMPONENT NAME

ios_facts

ADDITIONAL INFORMATION

In the ios_facts module, it does not currently collect the forwarding vrf of the interfaces. In our environment, we leverage VRF heavily, so we have to gather vrf information from the configuration returned by the module, because it is not available within the JSON interface models.

- name: "GATHER IOS FACTS"
  ios_facts:
    gather_subset:
      - !all
      - !min
    gather_network_resources:
      - interfaces

brandomando avatar Sep 23 '20 14:09 brandomando

I have the same issue. Being unable to parse VRF information from ios_facts poses a significant issue for us.

refriedjello avatar Oct 22 '20 17:10 refriedjello

Same, I'm surprised there is no way to interrogate tunnel endpoints or crypto maps.

Also, ios_facts doesn't recognise several interface types it's supposed to, like Loopback

Soopx avatar Oct 31 '20 18:10 Soopx

@brandomando VRF resource module is in our roadmap. Once it is available, it should fix this issue.

GomathiselviS avatar Jan 20 '21 13:01 GomathiselviS

Any updates on this issue and when vrf info will make it into ios_facts? Screen-scraping is not so nice and ability to glean vrf for a given interface would save tonnes of time

eyehearttech avatar May 21 '21 02:05 eyehearttech

@eyehearttech please follow our roadmap for the required details, https://github.com/ansible/community/wiki/Network:2021-Till-Dec-Roadmap also, the vrf facts would be considered with a resource module for it.

KB-perByte avatar Aug 31 '21 18:08 KB-perByte