Skip to content

Instantly share code, notes, and snippets.

@martinkennelly
Last active October 22, 2021 12:32
Show Gist options
  • Save martinkennelly/9e52727f55368cb42d2e0df2071c0fef to your computer and use it in GitHub Desktop.
Save martinkennelly/9e52727f55368cb42d2e0df2071c0fef to your computer and use it in GitHub Desktop.
Claim OVS port IF all conditions true:
1. iface-id and iface-id-ver is set on the OVS interface
2. OVS interface has ofport > 0
3. ovn-controller has seen the port_binding for pod logical port in SB DB
Release OVS port IF any of conditions true:
1. iface-id / iface-id-ver is deleted or updated to a different value
2. port_binding row is deleted in SB DB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment