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

IGMP interval default values not conforming the schema #16

Open
r4nx opened this issue Nov 14, 2024 · 2 comments
Open

IGMP interval default values not conforming the schema #16

r4nx opened this issue Nov 14, 2024 · 2 comments

Comments

@r4nx
Copy link

r4nx commented Nov 14, 2024

Hi!

According to uCentral schema, query-interval and last-member-query-interval fields have the defaults value of 1000 milliseconds. In ols-ucentral-client, though, the default is 60. Is this intended, or should we modify these values to match the schema?

Thanks!

@Cahb
Copy link
Contributor

Cahb commented Nov 14, 2024

Hello Viacheslav,

The default value in schema and default values in proto / platform definitions are not the same. You can view schema default as something that can be potentially added to a config request in case if it's explicitly omitted, e.g. it doesn't necessarily represent the platform default value;

You can ignore defaults, there's no need to change anything from your side, but thanks for raising this issue, as it covers some interesting topics we can discuss

Also, i think there's some confusion introduced into schema.... i think query-interval is seconds-based, and the last-member one is in milliseconds- units;
So i think it's actually makes sense to maybe level the schema to correspond to ucentral code values and not the other way around;

@mikehansen1970 i saw your comments regarding the explicit units postfix naming convention in the latest PR; I think them comennts address the exact problem we see here :)
Although as of now i would still abstain from touching the mcast code and leave it as is simply because it works (to not introduce schema / code change hussle), do you think it makes sense to walk through schema and either remove all these default occurances, or at least level them with real world values? Like 60 seconds for query-interval, for example

@mikehansen1970
Copy link
Contributor

mikehansen1970 commented Nov 14, 2024 via email

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

No branches or pull requests

3 participants