mirror of
https://github.com/openvswitch/ovs
synced 2025-10-13 14:07:02 +00:00
This merge took a little bit of care due to two issues: - Crossport of "interface-reconfigure" fixes from master back to citrix that had happened and needed to be canceled out of the merge. - New script "refresh-xs-network-uuids" added on citrix branch that needed to be moved from /root/vswitch/scripts to /usr/share/vswitch/scripts.
13 lines
348 B
Bash
Executable File
13 lines
348 B
Bash
Executable File
#! /bin/sh
|
|
|
|
. /etc/xensource-inventory
|
|
|
|
for pif in $(xe pif-list --minimal host-uuid=${INSTALLATION_UUID} currently-attached=true VLAN=-1 | sed 's/,/ /g'); do
|
|
printf "Refreshing PIF %s... " $pif
|
|
if /opt/xensource/libexec/interface-reconfigure --pif-uuid=$pif up; then
|
|
printf "done\n"
|
|
else
|
|
printf "error!\n"
|
|
fi
|
|
done
|