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

293.remove usage of deprecated #307

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

sajith
Copy link
Member

@sajith sajith commented Apr 16, 2024

Follow-up to #306, which added deprecation warnings to three methods, but we've been calling those allegedly deprecated methods internally. I failed to check for those usages, so I'm going around looking for where we've been using them.

  1. Interface.get_os_interface(), which has a simple replacement in get_device_name(), so I replaced all calls accordingly. Haven't actually tested this from a notebook, because I'm unsure what the replacements for the other two should be.

  2. Node.set_ip_os_interface() is called by Interface.set_ip(), which itself should be deprecated. I did not catch it in the previous pass because of the typo in comment ("Depricated" instead of "deprecated"), and I'm not sure what should replace either of these methods.

  3. Node.add_vlan_os_interface() is called by Interface.config_vlan_interface() (which is not intended for API use), which is called by Slice.post_boot_config(). Again, I'm not sure what should replace Node.add_vlan_os_interface().

Help, @kthare10 and @paul-ruth? :-)

sajith added 4 commits April 15, 2024 17:37
Although get_os_interface() is deprecated, we've been using it all
along. Wonder what surprises this change will spring up...
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 8698941792

Details

  • 0 of 6 (0.0%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage remained the same at 24.056%

Changes Missing Coverage Covered Lines Changed/Added Lines %
fabrictestbed_extensions/fablib/slice.py 0 1 0.0%
fabrictestbed_extensions/fablib/interface.py 0 5 0.0%
Files with Coverage Reduction New Missed Lines %
fabrictestbed_extensions/fablib/slice.py 1 8.42%
Totals Coverage Status
Change from base Build 8668730359: 0.0%
Covered Lines: 1273
Relevant Lines: 4722

💛 - Coveralls

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