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

Add hbo-lr-policy only if config.HybridOverlay.ClusterSubnets is set #2314

Merged
merged 1 commit into from Jul 12, 2021

Conversation

tssurya
Copy link
Member

@tssurya tssurya commented Jul 6, 2021

Since we do not have a config parser that checks if
HybridOverlay.ClusterSubnets is set if HybridOverlay.Enabled is true,
before adding the lr-in-policy we should check if there are any
clustersubnets in the config. Since we don't have a default value
for this field it ends up creating policies that have nil dst
fields.

Fixes #2313

Signed-off-by: Surya Seetharaman suryaseetharaman.9@gmail.com

Since we do not have a config parser that checks if
HybridOverlay.ClusterSubnets is set if HybridOverlay.Enabled is true,
before adding the lr-in-policy we should check if there are any
clustersubnets in the config. Since we don't have a default value
for this field it ends up creating policies that have nil dst
fields.

Signed-off-by: Surya Seetharaman <suryaseetharaman.9@gmail.com>
@tssurya
Copy link
Member Author

tssurya commented Jul 6, 2021

/assign @trozet

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 53.787% when pulling 2a1269d on tssurya:bug-979300 into 33dbced on ovn-org:master.

@dcbw
Copy link
Contributor

dcbw commented Jul 6, 2021

/lgtm
@JacobTanenbaum could you take a look?

@JacobTanenbaum
Copy link
Contributor

/lgtm

@trozet trozet merged commit 7cdd05f into ovn-org:master Jul 12, 2021
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.

Add hbo-lr-policy only if config.HybridOverlay.ClusterSubnets is set
5 participants