2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-13 14:07:02 +00:00
Files
openvswitch/xenserver/usr_share_vswitch_scripts_refresh-xs-network-uuids
Ben Pfaff 3f355f47f8 Merge "citrix" into "master".
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.
2009-10-22 17:43:28 -07:00

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