Debian Codegraph @

ntc_templates/templates/brocade_fastiron_show_trunk.textfsm

raw
1 Value Filldown ID ([0-9\/]+)
2 Value Required PORT1 ([0-9\/]+)
3 Value PORT2 ([0-9\/]+)
4 Value PORT3 ([0-9\/]+)
5 Value PORT4 ([0-9\/]+)
6 Value PORT5 ([0-9\/]+)
7 Value PORT6 ([0-9\/]+)
8 Value PORT7 ([0-9\/]+)
9 Value PORT8 ([0-9\/]+)
10 Value LINK1 (\w+)
11 Value LINK2 (\w+)
12 Value LINK3 (\w+)
13 Value LINK4 (\w+)
14 Value LINK5 (\w+)
15 Value LINK6 (\w+)
16 Value LINK7 (\w+)
17 Value LINK8 (\w+)
18 Value STATE1 (\w+)
19 Value STATE2 (\w+)
20 Value STATE3 (\w+)
21 Value STATE4 (\w+)
22 Value STATE5 (\w+)
23 Value STATE6 (\w+)
24 Value STATE7 (\w+)
25 Value STATE8 (\w+)
26
27 Start
28 ^Operational trunks: -> BODY
29
30 BODY
31 ^$$ -> Continue.Record
32 ^Trunk ID: ${ID}
33 ^Active Ports: 2 -> CASE2
34 ^Active Ports: 3 -> CASE3
35 ^Active Ports: 4 -> CASE4
36 ^Active Ports: 5 -> CASE5
37 ^Active Ports: 6 -> CASE6
38 ^Active Ports: 7 -> CASE7
39 ^Active Ports: 8 -> CASE8
40
41 CASE2
42 ^Ports\s+Link_Status -> ICX
43 ^Ports\s+${PORT1}\s+${PORT2}
44 ^Link_Status\s+${LINK1}\s+${LINK2}
45 ^port_state\s+${STATE1}\s+${STATE2} -> BODY
46
47 CASE3
48 ^Ports\s+Link_Status -> ICX
49 ^Ports\s+${PORT1}\s+${PORT2}\s+${PORT3}
50 ^Link_Status\s+${LINK1}\s+${LINK2}\s+${LINK3}
51 ^port_state\s+${STATE1}\s+${STATE2}\s+${STATE3} -> BODY
52
53 CASE4
54 ^Ports\s+Link_Status -> ICX
55 ^Ports\s+${PORT1}\s+${PORT2}\s+${PORT3}\s+${PORT4}
56 ^Link_Status\s+${LINK1}\s+${LINK2}\s+${LINK3}\s+${LINK4}
57 ^port_state\s+${STATE1}\s+${STATE2}\s+${STATE3}\s+${STATE4} -> BODY
58
59 CASE5
60 ^Ports\s+Link_Status -> ICX
61 ^Ports\s+${PORT1}\s+${PORT2}\s+${PORT3}\s+${PORT4}\s+${PORT5}
62 ^Link_Status\s+${LINK1}\s+${LINK2}\s+${LINK3}\s+${LINK4}\s+${LINK5}
63 ^port_state\s+${STATE1}\s+${STATE2}\s+${STATE3}\s+${STATE4}\s+${STATE5} -> BODY
64
65 CASE6
66 ^Ports\s+Link_Status -> ICX
67 ^Ports\s+${PORT1}\s+${PORT2}\s+${PORT3}\s+${PORT4}\s+${PORT5}\s+${PORT6}
68 ^Link_Status\s+${LINK1}\s+${LINK2}\s+${LINK3}\s+${LINK4}\s+${LINK5}\s+${LINK6}
69 ^port_state\s+${STATE1}\s+${STATE2}\s+${STATE3}\s+${STATE4}\s+${STATE5}\s+${STATE6} -> BODY
70
71 CASE7
72 ^Ports\s+Link_Status -> ICX
73 ^Ports\s+${PORT1}\s+${PORT2}\s+${PORT3}\s+${PORT4}\s+${PORT5}\s+${PORT6}\s+${PORT7}
74 ^Link_Status\s+${LINK1}\s+${LINK2}\s+${LINK3}\s+${LINK4}\s+${LINK5}\s+${LINK6}\s+${LINK7}
75 ^port_state\s+${STATE1}\s+${STATE2}\s+${STATE3}\s+${STATE4}\s+${STATE5}\s+${STATE6}\s+${STATE7} -> BODY
76
77 CASE8
78 ^Ports\s+Link_Status -> ICX
79 ^Ports\s+${PORT1}\s+${PORT2}\s+${PORT3}\s+${PORT4}\s+${PORT5}\s+${PORT6}\s+${PORT7}\s+${PORT8}
80 ^Link_Status\s+${LINK1}\s+${LINK2}\s+${LINK3}\s+${LINK4}\s+${LINK5}\s+${LINK6}\s+${LINK7}\s+${LINK8}
81 ^port_state\s+${STATE1}\s+${STATE2}\s+${STATE3}\s+${STATE4}\s+${STATE5}\s+${STATE6}\s+${STATE7}\s+${STATE8} -> BODY
82
83 ICX
84 ^${PORT1}\s+${LINK1}\s+${STATE1} -> ICX2
85
86 ICX2
87 ^${PORT2}\s+${LINK2}\s+${STATE2} -> ICX3
88
89 ICX3
90 ^${PORT3}\s+${LINK3}\s+${STATE3} -> ICX4
91
92 ICX4
93 ^${PORT4}\s+${LINK4}\s+${STATE4} -> ICX5
94
95 ICX5
96 ^${PORT5}\s+${LINK5}\s+${STATE5} -> ICX6
97
98 ICX6
99 ^${PORT6}\s+${LINK6}\s+${STATE6} -> ICX7
100
101 ICX7
102 ^${PORT7}\s+${LINK7}\s+${STATE7} -> ICX8
103
104 ICX8
105 ^${PORT8}\s+${LINK8}\s+${STATE8} -> BODY
106