Skip to content

TextFSM template help #1578

Closed Answered by jorlandobr
amitsova asked this question in Q&A
Dec 18, 2023 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

Hi Adriana!

I missed your reply and, apparently, deleted my initial reply by accident.

I remember (vaguely) about having some more success grouping the collected data using lists.

It seems that these modifications can give the intend data (grouped as lists). The extra label idea {Context} I got from this link, since when testing I could group all the sections, except the last one:

https://stackoverflow.com/questions/54649429/is-there-a-way-to-record-multiple-lines-at-once-with-textfsm

So I assumed that one extra step would do the trick.

Value Context (\S+\s\d+)
Value List PORT (\S+)
Value List MODE (\S+)
Value List ENCAPS (\S+)
Value List STATUS (\S+)
Value List NATIVE (\d+)
Value List VL…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@amitsova
Comment options

Comment options

You must be logged in to vote
5 replies
@jorlandobr
Comment options

Answer selected by amitsova
@jorlandobr
Comment options

@mjbear
Comment options

@amitsova
Comment options

@mjbear
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants