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
I'm currently using TextFSM in NTC_Templates and so far has been an awesome experience. Thanks for the awesome project!
I would like to ask about a specific problem i came across from a CLI output. Basically I want to be able to parse the data using different templates or whatever. The thing I would love is to be able to parse this output in just one single object:
-----------------------------------------------------------------------------
FEC upstream switch :Disable
OMCC Encrypt switch :On
Qos mode :Pq
Mapping mode :Vlan
Tr069 management :Disable
-----------------------------------------------------------------------------
Notes: * indicates Discrete TCONT(TCONT Unbound)
-----------------------------------------------------------------------------
<T-CONT 0> DBA Profile-ID:1
<T-CONT 1> DBA Profile-ID:2
<T-CONT 4> DBA Profile-ID:5
<Gem Index 126>
------------------------------------------------------------------------
|Serv-Type:ETH |Encrypt:off |Cascade:off |GEM-CAR:- |
|Upstream-priority-queue:- |Downstream-priority-queue:- |
------------------------------------------------------------------------
Mapping VLAN Priority Port Port Bundle Flow Transparent
index type ID ID CAR
------------------------------------------------------------------------
0 500 - - - - - -
------------------------------------------------------------------------
I accept any other suggestion as well! I suggest to reuse the id and index as a way to connect each part, but if it can nested inside even better instead of relating using the indexes. Thanks!
The text was updated successfully, but these errors were encountered:
The summary of that thread being TextFSM is not set up for providing (deeply?) nested data. If nested data is required, maybe modify it after textfsm parsing (post-parse) or there might be another project that does this out-of-the-box. There's an awesome network automation list that might help show possibilities.
Hi!
I'm currently using TextFSM in NTC_Templates and so far has been an awesome experience. Thanks for the awesome project!
I would like to ask about a specific problem i came across from a CLI output. Basically I want to be able to parse the data using different templates or whatever. The thing I would love is to be able to parse this output in just one single object:
The output should be something as follows:
I accept any other suggestion as well! I suggest to reuse the id and index as a way to connect each part, but if it can nested inside even better instead of relating using the indexes. Thanks!
The text was updated successfully, but these errors were encountered: