From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH 4/4] docs: Document xenstore paths for domain network address information Date: Fri, 6 Nov 2015 18:16:43 +0000 Message-ID: <563CEE8B.4090102@citrix.com> References: <1446830507-4233-1-git-send-email-paul.durrant@citrix.com> <1446830507-4233-6-git-send-email-paul.durrant@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZulZd-0005B7-80 for xen-devel@lists.xenproject.org; Fri, 06 Nov 2015 18:17:17 +0000 In-Reply-To: <1446830507-4233-6-git-send-email-paul.durrant@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant , xen-devel@lists.xenproject.org Cc: Ian Jackson , Tim Deegan , Keir Fraser , Ian Campbell , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 06/11/15 17:21, Paul Durrant wrote: > It is useful to be able to see the network addresses in use by a domain > for a particular vif in xenstore, for example so that ssh can be invoked > by a toolstack to log into the guest domain. > > This patch documents paths to allow a domain to advertise MAC (unicast > and multicast) and IP (versions 4 and 6) address information. > > Signed-off-by: Paul Durrant > Cc: Ian Campbell > Cc: Ian Jackson > Cc: Jan Beulich > Cc: Keir Fraser > Cc: Tim Deegan > --- > docs/misc/xenstore-paths.markdown | 29 +++++++++++++++++++++++++++++ > 1 file changed, 29 insertions(+) > > diff --git a/docs/misc/xenstore-paths.markdown b/docs/misc/xenstore-paths.markdown > index 9e98d6f..68d3dbf 100644 > --- a/docs/misc/xenstore-paths.markdown > +++ b/docs/misc/xenstore-paths.markdown > @@ -39,6 +39,8 @@ before regexp expansion: > * $UUID -- a UUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx > * $NAME -- a string identifying an object within a domain. Typically > comprising only alphanumeric characters. > +* $INDEX -- an integer used as part of a path when listing a set of > + values. Typically these integers are contiguous. > > VALUES are strings and can take the following forms: > > @@ -56,6 +58,13 @@ VALUES are strings and can take the following forms: > * VERSION -- 2 or 3 integers, in decimal form separated by ".", > specifying major version, minor version, and then > (optionally) micro version. > +* MAC_ADDRESS -- 6 integers, in hexadecimal form, separated by ':', > + specifying an ethernet MAC address. > +* IPV4_ADDRESS -- 4 integers, in decimal form, separated by '.', > + specifying an IP version 4 address. > +* IPV6_ADDRESS -- 8 integers, in hexadecimal form, separated by ':', > + specifying an IP version 6 address. (There should > + be strictly 8 integers i.e. '::' compression). Given the "strictly", I presume you mean no "::" compression? But why enforce that restriction? "::" compression is unambiguous and typically makes the addresses rather more human readable. ~Andrew