Skip to content
Open
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
5 changes: 5 additions & 0 deletions templates/common/_base/files/configure-ovs-network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ contents:
extra_phys_args+=( 802-3-ethernet.cloned-mac-address "${iface_mac}" )
fi

lldp_mode=$($NMCLI_GET_VALUE connection.lldp conn show ${old_conn})
if [[ -n "$lldp_mode" ]]; then
extra_phys_args+=( connection.lldp "${lldp_mode}" )
fi

# use ${extra_phys_args[@]+"${extra_phys_args[@]}"} instead of ${extra_phys_args[@]} to be compatible with bash 4.2 in RHEL7.9
if ! nmcli connection show "$bridge_interface_name" &> /dev/null; then
ovs-vsctl --timeout=30 --if-exists destroy interface ${iface}
Expand Down