2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-19 14:37:21 +00:00
Files
openvswitch/xenserver/usr_share_vswitch_scripts_refresh-xs-network-uuids

13 lines
348 B
Plaintext
Raw Normal View History

#! /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