search for: rename_vif

Displaying 1 result from an estimated 1 matches for "rename_vif".

2012 Jul 10
3
Bug#658305: [PATCH] hotplug: vif: fail if a duplicate vifname is used
...t citrix.com> diff -r ca5c30605279 -r efb7fee3573b tools/hotplug/Linux/vif-common.sh --- a/tools/hotplug/Linux/vif-common.sh Tue Jul 10 15:06:13 2012 +0100 +++ b/tools/hotplug/Linux/vif-common.sh Tue Jul 10 18:34:59 2012 +0100 @@ -65,6 +65,20 @@ case "$command" in ;; esac +rename_vif() { + local dev=$1 + local vifname=$2 + + # if a custom vifname was chosen and a link with that desired name + # already exists, then stop, before messing up whatever is using + # that interface (e.g. another running domU) because it's likely a + # configuration error + if...