Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Resolve issue with skipped execution of sg annotations
The problem causing ineffective application of sg annotations is that, during virtual machine restart, the logical switch port is intentionally not deleted.(I guess). When sg annotations are added and the VM is restarted, the create logical switch port logic is skipped as it detects the existing lsp. Consequently, the annotation fails to attach to the lsp. Even when we sync lsp for sg, it has no effect. A simple fix is to update the existing lsp during lsp creation if it already exists. This approach ensures correct annotation attachment and addresses the skipped execution issue. Signed-off-by: Qinghao Huang <[email protected]>
- Loading branch information