From nobody Fri Apr 26 23:00:29 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 15089585099258.9657302729006; Wed, 25 Oct 2017 12:08:29 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 289E2C0587FD; Wed, 25 Oct 2017 19:08:28 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9B6B44DA29; Wed, 25 Oct 2017 19:08:27 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id ADC1C3D3D3; Wed, 25 Oct 2017 19:08:25 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v9OCfvOR008820 for ; Tue, 24 Oct 2017 08:41:57 -0400 Received: by smtp.corp.redhat.com (Postfix) id C47176269D; Tue, 24 Oct 2017 12:41:57 +0000 (UTC) Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BEF7451C92 for ; Tue, 24 Oct 2017 12:41:54 +0000 (UTC) Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 21066C058ECF for ; Tue, 24 Oct 2017 12:41:50 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id l1so20539670wrc.3 for ; Tue, 24 Oct 2017 05:41:50 -0700 (PDT) Received: from localhost.localdomain (60.166.217.87.dynamic.jazztel.es. [87.217.166.60]) by smtp.gmail.com with ESMTPSA id y129sm192878wmg.42.2017.10.24.05.41.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Oct 2017 05:41:47 -0700 (PDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 289E2C0587FD Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 289E2C0587FD Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BUuIcL5d" DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 21066C058ECF Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=michal.rostecki@gmail.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 21066C058ECF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=5Cq4IthUgtXBLEd875hTUgOXrNtS/W9KeS/0lQ7CPa4=; b=BUuIcL5dbs4J/IAYZpGUG8yEM3m7dToYf2aGaMcSB+i7MRh7Os5xIKdQJKkKqeekGP actc/fvrBm8/3tE7qcOGSSt5mkPL1BRGJg3iFQOkg1gxmLk4jmzEx5CxUsA5lTfoKaZm 6vJqubpnPH5T5FNWk0irzYgTiCiN2e+hBWsE6OsCv/y1dw2GtoBqCDKwvCgYUZqzmZ2W R/40FxPz7y/PyS2KopaqRdp/OCeqHEbxBQTn7HuvWTWCvfEDIfP2eHxuZFpx7/VC1KOc 05m9fBl0QtrKdnBzQPolzvhirY4Obc3/QGPhbIadNyzr2xsCzS+UDNFYZqDnant0/Yb0 G+xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5Cq4IthUgtXBLEd875hTUgOXrNtS/W9KeS/0lQ7CPa4=; b=NSB4iNgA2idxaKdTt5ZKt5gEMTJ0lHzYkRIGG8nlv5qOtgi40/qOCt0roNU6e4NmmA 4f3TDWNE+MAGXrlKiIKd/i37xw7PC3UJr7iZYsNoIF0h3D7S7eIYaEjmpayGE0Zgf28K VB5zsx0JKu2/bTERprMBxw3YJfTsmCkm+7/Jobh87nA55xr//mbnEylc40Cf9wqdnd96 XhqKVH5/X9OhggLd6CKjV4LvkUlan6sRMalR2cumUyw2R9xheG0nXdHA7WGL5yFEzrS+ LYcDlOFmPjpbbIlIKc+xCwatXlVPMjcpeTIwX1TQR4wT6n/iVAT2wApSegph7K0JtBG4 k3pA== X-Gm-Message-State: AMCzsaVzoUZiEi79TVJ3M7FOfIORdyjZaShBdymKA6iBtSyNAgbgESA5 rGNDodhck9+EJr1fVB9ccDRZ/A== X-Google-Smtp-Source: ABhQp+S55WMKZBvZBqnhc2+Ct2gD7Z32JHpOVP7dYUkRkAtjg2heEnbWiaEy12QiLqkm4fO19Mjd7A== X-Received: by 10.223.171.6 with SMTP id q6mr4711066wrc.117.1508848908527; Tue, 24 Oct 2017 05:41:48 -0700 (PDT) From: Michal Rostecki X-Google-Original-From: Michal Rostecki To: libvir-list@redhat.com Date: Tue, 24 Oct 2017 13:41:42 +0100 Message-Id: <20171024124142.19689-1-michal@kinvolk.io> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 24 Oct 2017 12:41:50 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 24 Oct 2017 12:41:50 +0000 (UTC) for IP:'209.85.128.195' DOMAIN:'mail-wr0-f195.google.com' HELO:'mail-wr0-f195.google.com' FROM:'michal.rostecki@gmail.com' RCPT:'' X-RedHat-Spam-Score: -2.41 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_SORBS_SPAM, SPF_PASS) 209.85.128.195 mail-wr0-f195.google.com 209.85.128.195 mail-wr0-f195.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com X-Mailman-Approved-At: Wed, 25 Oct 2017 15:08:24 -0400 Cc: Michal Rostecki , michael@kinvolk.io, alban@kinvolk.io, iago@kinvolk.io Subject: [libvirt] [PATCH go-xml] Add bootp option to NetworkDHCP X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 25 Oct 2017 19:08:28 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" From: Michal Rostecki Support specyfing concrete file and TFTP server for PXE boot. Signed-off-by: Michal Rostecki --- network.go | 6 ++++++ network_test.go | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/network.go b/network.go index 32f125a..10c4dfc 100644 --- a/network.go +++ b/network.go @@ -78,9 +78,15 @@ type NetworkDHCPHost struct { IP string `xml:"ip,attr,omitempty"` } =20 +type NetworkBootp struct { + File string `xml:"file,attr,omitempty"` + Server string `xml:"server,attr,omitempty"` +} + type NetworkDHCP struct { Ranges []NetworkDHCPRange `xml:"range"` Hosts []NetworkDHCPHost `xml:"host"` + Bootp []NetworkBootp `xml:"bootp"` } =20 type NetworkIP struct { diff --git a/network_test.go b/network_test.go index b1bd168..3efb278 100644 --- a/network_test.go +++ b/network_test.go @@ -100,6 +100,12 @@ var networkTestData =3D []struct { IP: "192.168.122.10", }, }, + Bootp: []NetworkBootp{ + NetworkBootp{ + File: "pxelinux.0", + Server: "192.168.122.1", + }, + }, }, }, NetworkIP{ @@ -179,6 +185,7 @@ var networkTestData =3D []struct { ` `, ` `, ` `, + ` `, ` `, ` `, ` `, --=20 2.13.6 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list