Update EVPN EVI Detail Parser schema to make peer route keys optional#983
Open
sainc-g wants to merge 1 commit intoCiscoTestAutomation:mainfrom
Open
Update EVPN EVI Detail Parser schema to make peer route keys optional#983sainc-g wants to merge 1 commit intoCiscoTestAutomation:mainfrom
sainc-g wants to merge 1 commit intoCiscoTestAutomation:mainfrom
Conversation
Updated the schema for `ShowL2vpnEvpnEviDetail` parser to make peer route keys optional under the `bridge_domain -> peer` hierarchy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated the schema for
ShowL2vpnEvpnEviDetailparser to make peer route keys optional under thebridge_domain -> peerhierarchy.Description
In certain EVPN EVI detail outputs, peer entries are present without route counters (MAC, MAC/IP, IMET, EAD).
Example CLI:
Peers:
172.16.254.7
Parser was failing with:
SchemaMissingKeyError:
Missing keys:
Schema defined these keys as mandatory:
'mac_routes': int,
'mac_ip_routes': int,
'imet_routes': int,
'ead_routes': int,
However, device output does not always populate route counters for peers.
Motivation and Context
Converted mandatory peer route keys to optional:
Optional('mac_routes'): int,
Optional('mac_ip_routes'): int,
Optional('imet_routes'): int,
Optional('ead_routes'): int,
Impact
Screenshots:
Tested with:
Passed Log after parser change - https://earms-trade.cisco.com/tradeui/logs/logfile?logfile=TaskLog.Task-1&begin=10565910&size=45976&archive=%2Fnobackup%2Fsainc%2Fpolaris-dev%2Fpolaris%2Fbinos%2Flinkfarm%2Fsdks-host%2Fiosxe-pyats%2Fnativesdk%2Fsdk%2Fsysroots%2Fx86_64-xesdk-linux%2Fusr%2Fusers%2Fsainc%2Farchive%2F26-02%2Foc_oper_job_2026Feb05_12_40_43_141453.zip&ats=%2Fnobackup%2Fsainc%2Fpolaris-dev%2Fpolaris%2Fbinos%2Flinkfarm%2Fsdks-host%2Fiosxe-pyats%2Fnativesdk%2Fsdk%2Fsysroots%2Fx86_64-xesdk-linux%2Fusr&submitter=sainc&from=trade&view=all&atstype=pyATS
Failed Log before parser changes - https://earms-trade.cisco.com/tradeui/logs/logfile?logfile=TaskLog.Task-1&begin=8470177&size=47839&archive=%2Fnobackup%2Fsainc%2Fpolaris-dev%2Fpolaris%2Fbinos%2Flinkfarm%2Fsdks-host%2Fiosxe-pyats%2Fnativesdk%2Fsdk%2Fsysroots%2Fx86_64-xesdk-linux%2Fusr%2Fusers%2Fsainc%2Farchive%2F26-01%2Foc_oper_job_2026Jan30_08_35_27_280523.zip&ats=%2Fnobackup%2Fsainc%2Fpolaris-dev%2Fpolaris%2Fbinos%2Flinkfarm%2Fsdks-host%2Fiosxe-pyats%2Fnativesdk%2Fsdk%2Fsysroots%2Fx86_64-xesdk-linux%2Fusr&submitter=sainc&from=trade&view=all&atstype=pyATS
Checklist: