Skip to content

Commit 9aa193c

Browse files
committed
Fix: update EVI regex and test output in show_l2vpn_bridge_domain_detail parser
- Modified `p63` regex in `show_l2vpn.py` to support optional suffix (e.g., "(SRv6)") for EVI values - Updated `golden9_expected.py` to reflect new test output for EVI field - Adjusted URL in `github_parser.json` for the updated line reference These changes enhance the parser's compatibility with new formats in `ShowL2vpnBridgeDomainDetail`.
1 parent aaf4022 commit 9aa193c

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
--------------------------------------------------------------------------------
2+
Fix
3+
--------------------------------------------------------------------------------
4+
* IOSXR
5+
* Modified ShowL2vpnBridgeDomainDetail:
6+
* Modified regex <p63> in to support optional suffix (e.g., "(SRv6)") for EVI values

Diff for: sdk_generator/outputs/github_parser.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -52176,7 +52176,7 @@
5217652176
"os": "iosxr"
5217752177
},
5217852178
"uid": "show_l2vpn_forwarding_xconnect_xconnect_name_detail_location_location_name",
52179-
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxr/show_l2vpn.py#L2754"
52179+
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxr/show_l2vpn.py#L2755"
5218052180
}
5218152181
}
5218252182
},

Diff for: src/genie/libs/parser/iosxr/show_l2vpn.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,8 @@ def cli(self, output=None):
15851585
p62 = re.compile(r'^(?P<evpn>\S+), +state: +(?P<state>\S+)$')
15861586

15871587
# evi: 1000
1588-
p63 = re.compile(r'^evi: +(?P<evi>\d+)$')
1588+
# evi: 1000 (SRv6)
1589+
p63 = re.compile(r'^evi: +(?P<evi>\d+)(?:\s*\(.*\))?$')
15891590

15901591
# XC ID 0x80000009
15911592
p64 = re.compile(r'^XC +ID (?P<xc_id>\S+)$')

Diff for: src/genie/libs/parser/iosxr/tests/ShowL2vpnBridgeDomainDetail/cli/equal/golden9_expected.py

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
'evpn': {
9999
'EVPN': {
100100
'state': 'up',
101+
'evi': '1002',
101102
'xc_id': '0x80000003',
102103
'statistics': {
103104
'packet_totals': {

0 commit comments

Comments
 (0)