[ovs-dev] [PATCH 2/4] xenserver: Restore XS5.5 compatibility for vif script.
Justin Pettit
jpettit at nicira.com
Wed Mar 17 00:34:48 UTC 2010
On Mar 12, 2010, at 3:08 PM, Ben Pfaff wrote:
> + # Get UUID for OpaqueRef:. xe doesn't document any way to do this,
> + # but it can be made to print the uuid as part of an error message
> + # on vif-param-get. The error message takes the form:
Yuck!
> + #
> + # The uuid you supplied was invalid.
> + # type: VIF
> + # uuid: 2c13f6d6-a567-f908-bdf1-a22746d675b2
> + vif_uuid=$(xe vif-param-get uuid="${vif_ref}" param-name=MTU 2>&1 | grep '^uuid:' | awk '{print $2}')
> + fi
> + fi
Looks good.
--Justin
More information about the dev
mailing list