Merge "openvswitch: Drop ovs_ensure_configured.sh"

This commit is contained in:
Zuul 2024-09-13 08:33:51 +00:00 committed by Gerrit Code Review
commit 8bc94e6dca
3 changed files with 6 additions and 25 deletions

View File

@ -5,10 +5,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% block openvswitch_db_server_header %}{% endblock %}
COPY ovs_ensure_configured.sh /usr/local/bin/kolla_ensure_openvswitch_configured
COPY extend_start.sh /usr/local/bin/kolla_openvswitch_extend_start
RUN chmod 755 /usr/local/bin/kolla_ensure_openvswitch_configured \
/usr/local/bin/kolla_openvswitch_extend_start
RUN chmod 755 /usr/local/bin/kolla_openvswitch_extend_start
{% block openvswitch_db_server_footer %}{% endblock %}
{% block footer %}{% endblock %}

View File

@ -1,22 +0,0 @@
#!/bin/bash
set -o errexit
bridge=$1
port=$2
if ! ip link show $port; then
# fail when device doesn't exist
exit 1
fi
ovs-vsctl br-exists $bridge || if [[ $? -eq 2 ]]; then
changed=changed
ovs-vsctl --no-wait add-br $bridge
fi
if [[ ! $(ovs-vsctl list-ports $bridge) =~ $(echo "\<$port\>") ]]; then
changed=changed
ovs-vsctl --no-wait add-port $bridge $port
fi
echo $changed

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
``openvswitch`` script ``ovs_ensure_configured.sh`` has been dropped after
being replaced with Ansible modules in ``kolla-ansible``.