[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/3] tools/hotplug: Fix hostname setting in vif-nat
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Diego Sueiro <diego.sueiro@xxxxxxx>
- Date: Thu, 20 Aug 2020 11:58:20 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8AJK7pf4pY504nOT08575pkYv6VE7TKPG2DEhBwtnAA=; b=jP8M7XPFXapsLvFZIseREVIe5NB1iaPKMn5W2wsPWxsuNt+WoUIlEf6Z+suaQHZkwxgZithE5RUOncAScQIym+Lbv6D283NAseD7CkeKA0ygHAzorhJp309PsXJSuad5BtDOONlcpz0yJaxdDkaNm/jC7Q6Yv+Y8qfp/sj6h3Dw78viLAlvIjXuFnJaxMoQ6+MAnpkf2SDCCIU0Mxha0Z1Mp7V/U1Rs/wqPYz7/b9Cp/f6dn+0mBpBQa5Zj1y5hgzIZSKEaD6pnfBIorHEyJVDlDRQ8GwjUb2TyQ3sHhK2oQ85y/6ih8W+QJynfvy5tsLmkRDW3j6iFqtKx0+e9XHg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PnG22vCK3y5mY4vtOG/1NzX6jgKeghbY/BGS+bifS6KA9jXrubB5DgI8JbnqqQdPi3yNUUPjSvg21aNCSCSUnptxj+2B61TOn/u4z9CgWGBLfFwuwi3Oki149OP6/fmfVYxec6b1+odv6GQinabj4Nv3M6oGoiYbWUGhyTpZBQvGuaJvD2lE3vc94T06Wu39wjLxyJRjBmhxpDTTpF7t+NZZDlVUhQupq+wqxbgVdcb26fxvZmoWHzXnPWT/yEoEB0rb1Dnlnzv/AFM9qMBF9SSEjf/oSo/zilAfXnPGiO8vCWi9hgNc7fqboEA4NyFZrdsaYQzd359H9F8j578+Zg==
- Authentication-results-original: lists.xenproject.org; dkim=none (message not signed) header.d=none; lists.xenproject.org; dmarc=none action=none header.from=arm.com;
- Cc: nd@xxxxxxx, Diego Sueiro <diego.sueiro@xxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
- Delivery-date: Thu, 20 Aug 2020 10:59:16 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=none action=none header.from=arm.com;
Setting the hostname is failing because the "$XENBUS_PATH/domain"
doesn't exist anymore. To fix this we set it to dom$domid
Signed-off-by: Diego Sueiro <diego.sueiro@xxxxxxx>
---
tools/hotplug/Linux/vif-nat | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/hotplug/Linux/vif-nat b/tools/hotplug/Linux/vif-nat
index a76d9c7..2614435 100644
--- a/tools/hotplug/Linux/vif-nat
+++ b/tools/hotplug/Linux/vif-nat
@@ -85,7 +85,7 @@ router_ip=$(routing_ip "$ip")
# Split the given IP/bits pair.
vif_ip=`echo ${ip} | awk -F/ '{print $1}'`
-hostname=$(xenstore_read "$XENBUS_PATH/domain" | tr -- '_.:/+' '-----')
+hostname=dom$domid
if [ "$vifid" != "1" ]
then
hostname="$hostname-$vifid"
--
2.7.4
|