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

bindings: convert optional nil pointers to empty sets #231

Merged
merged 1 commit into from
Oct 1, 2021

Conversation

amorenoz
Copy link
Collaborator

@amorenoz amorenoz commented Oct 1, 2021

An optional field can be a nil pointer which represents, in this case,
an empty set.

Make NativeToOvs convert nil pointers to empty OvsSets so Update()
operations that want to clear an optional field work.

Fixes: #230
Signed-off-by: Adrian Moreno [email protected]

An optional field can be a nil pointer which represents, in this case,
an empty set.

Make NativeToOvs convert nil pointers to empty OvsSets so Update()
operations that want to clear an optional field work.

Signed-off-by: Adrian Moreno <[email protected]>
amorenoz added a commit to amorenoz/ovs-flowmon that referenced this pull request Oct 1, 2021
Use libovsdb to configure the IPFIX exporter

DO NOT MERGE!
TODO: This does not work because of a bug in libovsdb:
ovn-org/libovsdb#231

Signed-off-by: Adrian Moreno <[email protected]>
Copy link
Collaborator

@dave-tucker dave-tucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks @amorenoz

@dave-tucker dave-tucker merged commit 590cbe7 into ovn-org:main Oct 1, 2021
@dave-tucker dave-tucker added the fix label Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot clear an optional string (UUID)
2 participants