Skip to content

Commit 1fae532

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 860e12c commit 1fae532

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

sdk_generator/outputs/github_parser.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52077,7 +52077,7 @@
5207752077
"os": "iosxr"
5207852078
},
5207952079
"uid": "show_l2vpn_forwarding_xconnect_xconnect_name_detail_location_location_name",
52080-
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxr/show_l2vpn.py#L2754"
52080+
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxr/show_l2vpn.py#L2755"
5208152081
}
5208252082
}
5208352083
},

src/genie/libs/parser/iosxr/show_l2vpn.py

Lines changed: 2 additions & 1 deletion
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+)$')

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

Lines changed: 1 addition & 0 deletions
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)