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

Refactored glances.plugins.ip.PluginModel.update #2998

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ariel-anieli
Copy link

Description

Follows from #2997; closed by mistake.

# make test 2>&1 | grep -Pi '^ok|^fail'
OK
OK
OK

After:
Screenshot from 2024-11-01 15-30-40

Before:
Screenshot from 2024-11-01 15-30-54

Resume

  • part of Reduce code complexity #2801
  • formatted into a dict; if input method is SNMP, returns default stats
  • if input method is local, calls get_stats_for_local_input
  • it has three steps: get_private_ipv4, get_first_ipv4, get_public_ipv4.

@ariel-anieli
Copy link
Author

Work in progress.

@ariel-anieli ariel-anieli force-pushed the ip-model branch 18 times, most recently from 7cf72e4 to a57010a Compare November 1, 2024 19:54
* part of nicolargo#2801
* formatted into a dict; if input method is SNMP, returns default stats
* if input method is local, calls `get_stats_for_local_input`
* it has three steps:  `get_private_ipv4`, `get_first_ipv4`, `get_public_ipv4`.

Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
@ariel-anieli
Copy link
Author

Ready to go; all tests are passing.

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.

1 participant