TextFSM Structure

Template should look like this :

#Definition
Value VARIABLE (regular expression pattern)
Value VARIABLE (regular expression pattern)
Value VARIABLE (regular expression pattern)

#TxtFSM Start
Start
….Regex Expression for what you are looking for : ^Device.*ID -> LLDP

LLDP
….^${VARIABLE}.* -> Record

 

Leave a Comment