Skip to content

Commit c398697

Browse files
author
AJ Cruz
committed
Add missing p3 regex pattern
1 parent efc1069 commit c398697

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/genie/libs/parser/iosxe/show_platform.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35344,6 +35344,9 @@ def cli(self, output=None):
3534435344
# SW_NUM ASIC # of TUNNELS PLATFORM
3534535345
# | 2 | 0 | 2 | C9300X |
3534635346
p2 = re.compile(r'\s+\|\s+(?P<switch_number>-?\d+)\s+\|\s+(?P<asic_value>-?\d+)\s+\|\s+(?P<num_of_tunnel>-?\d+)\s+\|\s+(?P<platform>\S+)\s+\|$')
35347+
#| INTERFACE | IF_ID | SADB_ID | SW_NUM | ASIC |
35348+
#| Tunnel201 | 0x00000216 | 1 | 1 | 0 |
35349+
p3 = re.compile(r'^\s+\|\s+(?P<tunnel_int>Tunnel\d+)\s+\|\s+(?P<if_id>\w+)\s+\|\s+(?P<sbad_info>\d+)\s+\|\s+(?P<switch_number>\d+)\s+\|\s+(?P<asic_id>\d+)\s+\|')
3534735350

3534835351
for line in output.splitlines():
3534935352

0 commit comments

Comments
 (0)