Closed ntaken closed 3 months ago
@ntaken it looks good.
Yes it is a TEXTFSM limitation i'm not aware of a cleaner way to capture multiline wrapped text in tables. Would be great if there was a new values listappend (xyz)
type. For now you need to post-process join the list into string.
Next step: OptionA i can try to add the fix+pr or OptionB someone here can give it a go when they have time.
tests/cisco_s300/show_lldp_neighbors/cisco_s300_show_lldp_neighbors2.raw
ntc_templates/templates/cisco_s300_show_lldp_neighbors.textfsm
b=tests/cisco_s300/show_lldp_neighbors/cisco_s300_show_lldp_neighbors2 ;python3 development_scripts.py -c ${fb}.raw && cat ${fb}.yml
ISSUE TYPE
TEMPLATE USING
SAMPLE COMMAND OUTPUT
SUMMARY
My current modification collect all relevant information but requries som further scripting to display it correcly (Add the lists variables together).
Is there a better way to collect a multiline variable or is this a limitation of TEXTFSM?
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS