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

update omr-quota to up the interface when its usage is below threshold #309

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

bdaylik
Copy link
Contributor

@bdaylik bdaylik commented Mar 25, 2024

Existing condition for the upping the interface asks for all 3 checks to have positive values (RX, TX and TT). However this is not necessary as some can be set to 0 to disable the check.

This modification makes sure that if the above checks for RX, TX and TT values have failed, thus the usage is still below the set quota, the interface is set to be up.

Thanks to this modification its possible to set only one check positive (e.g. TT) and let the script automatically down and up the interface as expected.

Existing condition for the upping the interface asks for all 3 checks to have positive values (RX, TX and TT). However this is not necessary as some can be set to 0 to disable the check.

This modification makes sure that if the above checks for RX, TX and TT values have failed, thus the usage is still below the set quota, the interface is set to be up.

Thanks to this modification its possible to set only one check positive (e.g. TT) and let the script automatically down and up the interface as expected.
@Ysurac Ysurac merged commit bb48353 into Ysurac:develop Mar 25, 2024
@Ysurac
Copy link
Owner

Ysurac commented Mar 25, 2024

Yes thanks, check are not needed here. It was more to not up an interface that was manually put down, but in this case maybe not need for quota...

@bdaylik
Copy link
Contributor Author

bdaylik commented Mar 25, 2024

That's what I thought also, however I believe there should be something else to track if an interface is put down automatically or not. I'll think about a way for that. Thanks for the super quick response on all of my PRs. 👍

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