Debian Codegraph @

ntc_templates/templates/dell_force10_show_vlan.textfsm

raw
1 Value Required VLAN_ID (\d+)
2 # Name is really the description and it currently only supports a single word (no spaces)
3 Value Required STATUS (\w+)
4 Value NAME ([^TU][^\s]\S+(\s\S+)*)
5 Value PORTS_U_GI (\S+)
6 Value PORTS_T_GI (\S+)
7 Value PORTS_U_TE (\S+)
8 Value PORTS_T_TE (\S+)
9 Value PORTS_U_FO (\S+)
10 Value PORTS_T_FO (\S+)
11 Value PORTS_U_MA (\S+)
12 Value PORTS_T_MA (\S+)
13
14 Start
15 ^(\*)?\s+\d+.* -> Continue.Record
16 ^(\*)?\s+${VLAN_ID}\s+${STATUS}(\s+${NAME})?(\s+(U Gi ${PORTS_U_GI}|T Gi ${PORTS_T_GI}|U Ma ${PORTS_U_MA}|T Ma ${PORTS_T_MA}|U Te ${PORTS_U_TE}|T Te ${PORTS_T_TE}|U Fo ${PORTS_U_FO}|T Fo ${PORTS_T_FO}))?
17 ^\s+U Gi ${PORTS_U_GI}
18 ^\s+T Gi ${PORTS_T_GI}
19 ^\s+U Ma ${PORTS_U_MA}
20 ^\s+T Ma ${PORTS_T_MA}
21 ^\s+U Te ${PORTS_U_TE}
22 ^\s+T Te ${PORTS_T_TE}
23 ^\s+U Fo ${PORTS_U_FO}
24 ^\s+T Fo ${PORTS_T_FO}