From nobody Sun May 5 03:10:42 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 1508927613794516.4366874539999; Wed, 25 Oct 2017 03:33:33 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 08A9D37EE1; Wed, 25 Oct 2017 10:33:32 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 87BC96FAAC; Wed, 25 Oct 2017 10:33:31 +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 33ADC1804487; Wed, 25 Oct 2017 10:33:30 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v9PAXTFT007577 for ; Wed, 25 Oct 2017 06:33:29 -0400 Received: by smtp.corp.redhat.com (Postfix) id 208AF6FA83; Wed, 25 Oct 2017 10:33:29 +0000 (UTC) Received: from mx1.redhat.com (ext-mx04.extmail.prod.ext.phx2.redhat.com [10.5.110.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 19B7C6FAB8 for ; Wed, 25 Oct 2017 10:33:26 +0000 (UTC) Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) (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 5E7EF7EAA4 for ; Wed, 25 Oct 2017 10:33:25 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id o44so23477559wrf.11 for ; Wed, 25 Oct 2017 03:33:25 -0700 (PDT) Received: from localhost.localdomain (60.166.217.87.dynamic.jazztel.es. [87.217.166.60]) by smtp.gmail.com with ESMTPSA id o18sm2385456wrh.23.2017.10.25.03.33.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Oct 2017 03:33:22 -0700 (PDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 08A9D37EE1 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx05.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 08A9D37EE1 Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ebfp8omh" DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 5E7EF7EAA4 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=michal.rostecki@gmail.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 5E7EF7EAA4 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=Ebfp8omhzfEY+JF/rGpRAr/WBkPNrWAalAUFtnlKktDWxPN88+5W2bkQibDxKCKngj ozPFWjZ3mU05aSKTroy/vNYUIYIDwuvWKDzuLcfWNJnOLxC0CQu4yvra0OcxrSDZH16p YVX4YH5fUJ630+myFoAKSmf1OxTv6MtP2lKE1jq0+6olcgt7EXMuqf/ODlpQlpNviC2b yXLEBcFRcq1dL4EjYklMzQFrAS8jozcHF9WaPa6qVD092MxQ7jaY5ArFQ3I4HvNWUURR y5fqqOT6vnhRIXDuGahJ5RL5Qngli3yyPuNcCOvph7WgQNbAfqEF4fcHxpGiJDL3hbkU pFug== 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=f1Fbl3aOFbtJUtW/W6U8xf8fvNX3nAGeZ4wm8opLXi+jGAD5izPPBHYNqKM8kp69gH F01Tlckzb00tiLwHg2Wl1B8EPlRHq2EUL1UHXsHKvI9GSaE5tTtVUXn1Si+aGHJalblZ TnR9fpussF95l2ce3doHNqt449F99j5bYkRh/HLyZIswXBgHr9ni5pDv6qarbvTgsxqc 7xn6HeG/brIQLjMJ/gyPLkAROtFRb/FM+T5GcZg2ryTVALdZyuhmjAL+kUfg+xs8RUTW FzAEHek/x4wTU4QNrB1wU7p8udj/hy7LKRhvuJL9/B8Q2XCwy/nMLnbKIoZgQWQSUjS/ ZYEw== X-Gm-Message-State: AMCzsaXzkYTuQhUEfiVyr+BAreRLSgjYYNc+4g0MRYcJwdbq90Oociql YgA/oOObRObUr8JN5J8xHv1p6A== X-Google-Smtp-Source: ABhQp+RJiejXrhbv9fR2U4ijA+392wA3/MeuhoBB2kNtQak0j2u+EU6UAWpSJXp5tPNxf61w4gzmVA== X-Received: by 10.223.162.139 with SMTP id s11mr1735902wra.231.1508927603850; Wed, 25 Oct 2017 03:33:23 -0700 (PDT) From: Michal Rostecki X-Google-Original-From: Michal Rostecki To: libvir-list@redhat.com Date: Wed, 25 Oct 2017 11:33:09 +0100 Message-Id: <20171025103309.31340-1-michal@kinvolk.io> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 25 Oct 2017 10:33:25 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 25 Oct 2017 10:33:25 +0000 (UTC) for IP:'209.85.128.194' DOMAIN:'mail-wr0-f194.google.com' HELO:'mail-wr0-f194.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.194 mail-wr0-f194.google.com 209.85.128.194 mail-wr0-f194.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.28 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: Michal Rostecki 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.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 25 Oct 2017 10:33:32 +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