You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`
Value Required NAME (\S+)
Value DEFAULT_RD ((\d+|\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}):\d+|)
Value PROTOCOLS (\S+)
Value List INTERFACES (\S+)
Start
^\s+Name\s+Default RD\s+Protocols\s+Interfaces -> Start_record
# Capture time-stamp if vty line has command time-stamping turned on
^Load\s+for\s+
^Time\s+source\s+is
hello, are you able to share an image that illustrates how that must work (output sample I mean), please?
my device is c76xx and removing \s+ was not helped with 'show vrf'
Thank you
@whitej6
ISSUE TYPE
TEMPLATE USING
`
Value Required NAME (\S+)
Value DEFAULT_RD ((\d+|\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}):\d+|)
Value PROTOCOLS (\S+)
Value List INTERFACES (\S+)
Start
^\s+Name\s+Default RD\s+Protocols\s+Interfaces -> Start_record
# Capture time-stamp if vty line has command time-stamping turned on
^Load\s+for\s+
^Time\s+source\s+is
Start_record
^\s{2}\S+ -> Continue.Record
^\s{60}\s+${INTERFACES}
^\s+${NAME}\s+${DEFAULT_RD}\s+${PROTOCOLS}\s+${INTERFACES}
`
SAMPLE COMMAND OUTPUT from stdout
Name Default RD Protocols Interfaces\n Mgmt-vrf ipv4,ipv6 Gi0/0\n user 172.30.197.254:5 ipv4 Lo0\n Vl10\n Vl11\n Vl25
SUMMARY
Parser does not parse output correctly. I had to remove "\s+" from start (line 7).
This was on Cat9K running - Cisco IOS XE Software, Version 16.06.06
STEPS TO REPRODUCE
'
set_fact:
vrf_facts: "{{ command_output.stdout[0] | parse_cli_textfsm('template/cisco_ios_show_vrf.template') }}"
'
EXPECTED RESULTS
Correctly structure "sh vrf" output.
ACTUAL RESULTS
Failed parse, empty variable.
vrf_facts = []
The text was updated successfully, but these errors were encountered: