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

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

ariel-anieli
Copy link
Contributor

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 ariel-anieli marked this pull request as draft November 1, 2024 15:34
@ariel-anieli
Copy link
Contributor 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 <[email protected]>
@ariel-anieli ariel-anieli marked this pull request as ready for review November 1, 2024 20:11
@ariel-anieli
Copy link
Contributor Author

Ready to go; all tests are passing.

@nicolargo nicolargo added this to the Glances 4.3.0 milestone Nov 6, 2024
@nicolargo nicolargo merged commit 08c31b8 into nicolargo:develop Nov 6, 2024
14 of 15 checks passed
@nicolargo
Copy link
Owner

Thanks @ariel-anieli !

@ariel-anieli ariel-anieli deleted the ip-model branch November 6, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants