Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions templates/common/_base/files/nmstate-configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,11 @@ contents:
exit 1
fi

# Handle the case where we're migrating from configure-ovs
ovs-vsctl --timeout=30 --if-exists del-br br-ex

# Handle the case where we're migrating from OpenShift SDN
ovs-vsctl --timeout=30 --if-exists del-br br0
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this script be invoked when a node is running with SDN? If yes, we cannot remove br0 in that case.

Copy link
Member Author

Choose a reason for hiding this comment

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

This should not be used with OpenShift SDN. It's specific to configuring br-ex for OVNKubernetes.


cp "$src_path/$config_file" /etc/nmstate
touch /etc/nmstate/openshift/applied