Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support NTP server details in base, EOS #2160

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open

Support NTP server details in base, EOS #2160

wants to merge 6 commits into from

Conversation

bewing
Copy link
Member

@bewing bewing commented Jan 22, 2025

Based on models from openconfig-system, return optional additional data regarding NTP servers for the first supported driver (EOS).

In support of adding details to NTP server dictionaries,
support detection of non-total TypedDicts and change the logic
to only error if there are EXTRA keys instead of missing keys.
Support returning details regarding individual NTP servers based
on openconfig models (/system/ntp/servers/server)
napalm/base/models.py Outdated Show resolved Hide resolved
Copy link
Contributor

@ktbyers ktbyers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only reviewed part of the testing here...but it is a start.

napalm/base/test/helpers.py Show resolved Hide resolved
napalm/base/test/helpers.py Outdated Show resolved Hide resolved
Since we only have a limited set of models that we are testing
subsets of keys for, we should explicitly only allow subsets when
testing those getters.
Making NTPPeerDict and NTPServerDict non-identical caused
issues with typing since we wre unable to assert the type of the
return dictionary easily.  This refactor allows us to explicitly
state the return type for each function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants