<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.sysutils.netcf.devel">
    <title>gmane.comp.sysutils.netcf.devel</title>
    <link>http://blog.gmane.org/gmane.comp.sysutils.netcf.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/726"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/723"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/716"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/698"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/695"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/692"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/686"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/685"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/673"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/667"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/660"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/657"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/652"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/651"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/650"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/645"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/644"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/638"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/636"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/619"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/726">
    <title>[PATCH] Add bundled(gnulib) to RPM specfile</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/726</link>
    <description>&lt;pre&gt;According to Fedora guidelines, because we bundle gnulib we
need to add a virtual Provides: bundled(gnulib).

https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries#Requirement_if_you_bundle
---
 netcf.spec.in |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/netcf.spec.in b/netcf.spec.in
index cec69c1..234561b 100644
--- a/netcf.spec.in
+++ b/netcf.spec.in
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -14,6 +14,8 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; BuildRequires:  libxml2-devel libxslt-devel
 BuildRequires:  libnl-devel
 Requires:       %{name}-libs = %{version}-%{release}
 
+Provides: bundled(gnulib)
+
 %description
 Netcf is a library used to modify the network configuration of a
 system. Network configurations are expressed in a platform-independent
&lt;/pre&gt;</description>
    <dc:creator>Laine Stump</dc:creator>
    <dc:date>2012-05-15T15:26:29</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/723">
    <title>Preparing for freebsd support pull request</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/723</link>
    <description>&lt;pre&gt;So, Hiren and I are approaching our first milestone, where we think that
we're feature complete for freebsd.  We're working out a few details at
the moment, but its starting to look good.

In order for you guys to pull from us, what's the standard process for
us to follow such that you can review, accept(and/or reject) and pull
from our tree.

I assume there's some kind of "generate review-able patches" guidelines
we should follow to make your lives easy.

Sean


_______________________________________________
netcf-devel mailing list
netcf-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel
&lt;/pre&gt;</description>
    <dc:creator>Sean Bruno</dc:creator>
    <dc:date>2012-05-11T00:07:25</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/716">
    <title>netcf patches for debian (v2)</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/716</link>
    <description>&lt;pre&gt;Hi,

Thanks Eric and Laine for your earlier comments. Here is a small
set of 3 cleaner patches which are enough to make netcf build on
debian.   (patches on top of git head).  I will try my hand at
the autoconf magic needed for libnl support next.

thanks,
-serge

_______________________________________________
netcf-devel mailing list
netcf-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel
&lt;/pre&gt;</description>
    <dc:creator>serge-A9i7LUbDfNHQT0dZR+AlfA&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2012-04-28T01:24:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/698">
    <title>[PATCH 0/9] Ubuntu netcf patches</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/698</link>
    <description>&lt;pre&gt;Hi guys,

following is the set of patches applied in the Ubuntu package.  I was
sure I had sent these before, but they're not in the archive.  I was
wondering why there had never been any discussion!  Sorry about that.

thanks,
-serge
_______________________________________________
netcf-devel mailing list
netcf-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel
&lt;/pre&gt;</description>
    <dc:creator>Serge Hallyn</dc:creator>
    <dc:date>2012-03-20T14:07:41</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/695">
    <title>Ubuntu patches for netcf</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/695</link>
    <description>&lt;pre&gt;
Serge,

After getting some netcf-related libvirt bug reports identified as
coming from an ubuntu system, I realized that you must now have a
released netcf build for ubuntu, but it's based on an upstream netcf git
checkout rather than a release. Any chance you could post the patches
you made so that I can push them and make a new upstream release (I'll
probably bump it from 0.1.9 to 0.2.0 to celebrate a released working
port on a new platform :-)

Thanks!

Laine
_______________________________________________
netcf-devel mailing list
netcf-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel
&lt;/pre&gt;</description>
    <dc:creator>Laine Stump</dc:creator>
    <dc:date>2012-03-19T18:27:16</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/692">
    <title>change-* commands</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/692</link>
    <description>&lt;pre&gt;    change-begin - mark the beginning of a set of revertible network config
changes
    change-commit - commit the pending network config changes
    change-rollback - rollback (revert) a set of network config changes

Hi folks,

Can someone please take some time out to explain how these commands are
supposed to work?
what is the input and output of these commands?
it seems we take snapshots of current configurations? can someone shed some
light, please?

Thanks in advance,
Hiren
_______________________________________________
netcf-devel mailing list
netcf-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel
&lt;/pre&gt;</description>
    <dc:creator>hiren panchasara</dc:creator>
    <dc:date>2012-03-15T07:24:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/686">
    <title>How to determine "start mode"?</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/686</link>
    <description>&lt;pre&gt;&amp;lt;start mode="none"/&amp;gt; or &amp;lt;start mode="onboot"/&amp;gt;


How is it decided?

Thanks,
Hiren
_______________________________________________
netcf-devel mailing list
netcf-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel
&lt;/pre&gt;</description>
    <dc:creator>hiren panchasara</dc:creator>
    <dc:date>2012-03-12T00:16:49</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/685">
    <title>oh hey ... just a note from over here in freebsd.orgland</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/685</link>
    <description>&lt;pre&gt;Just a note of introduction as Hiren has been nice enough to keep the
questions to you guys coming when we are on the bus in the morning to
the offices.

He and I are thwacking on netcf at the moment in order to move on to
libvirt and then on to virtualization support on FreeBSD.  So, you fine
folks are the first stop on this little journey that ends up with
libvirt support for BHyVe ... at some point.

Cheers.

Sean
_______________________________________________
netcf-devel mailing list
netcf-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel
&lt;/pre&gt;</description>
    <dc:creator>Sean Bruno</dc:creator>
    <dc:date>2012-03-07T17:53:24</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/673">
    <title>define and undefine</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/673</link>
    <description>&lt;pre&gt;"define" takes an xmlfile as an argument, is that same as output of dumpxml?

And undefine would delete the interface from the configuration altogether.

Is my understanding correct?

Thanks a lot,
Hiren
_______________________________________________
netcf-devel mailing list
netcf-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel
&lt;/pre&gt;</description>
    <dc:creator>hiren panchasara</dc:creator>
    <dc:date>2012-03-06T07:31:32</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/667">
    <title>dumpxml output format of resulting xml file</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/667</link>
    <description>&lt;pre&gt;Hi All,

I am looking inside /test/interface/ at ethernet-dhcp.xml and
ethernet-static.xml:

[1]ethernet-dhcp.xml

&amp;lt;interface type="ethernet" name="eth0"&amp;gt;
  &amp;lt;start mode="none"/&amp;gt;
  &amp;lt;mac address="aa:bb:cc:dd:ee:ff"/&amp;gt;
  &amp;lt;mtu size="1492"/&amp;gt;
  &amp;lt;protocol family="ipv4"&amp;gt;
    &amp;lt;dhcp/&amp;gt;&amp;lt;!-- peerdns="no"/&amp;gt;--&amp;gt;
  &amp;lt;/protocol&amp;gt;
&amp;lt;/interface&amp;gt;

[2]ethernet-static.xml

&amp;lt;interface type="ethernet" name="eth1"&amp;gt;
  &amp;lt;start mode="onboot"/&amp;gt;
  &amp;lt;protocol family="ipv4"&amp;gt;
    &amp;lt;ip address="192.168.0.5" prefix="24"/&amp;gt;
    &amp;lt;route gateway="192.168.0.1"/&amp;gt;
  &amp;lt;/protocol&amp;gt;
&amp;lt;/interface&amp;gt;


What I understand is, when "dumpxml em0" is called, if em0 is an ethernet
interface whose address has been provided by dhcp, the o/p *must* look like
[1] and if address is statically allocated, o/p *must* look like [2].
Please correct me if that is not accurate.

I want to understand rationale behind this format. How are these decided.
For example,  why "mac address" and "mtu size" do not matter in [2]?

Thanks for all the work and help,
Hiren
_______________________________________________
netcf-devel mailing list
netcf-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel
&lt;/pre&gt;</description>
    <dc:creator>hiren panchasara</dc:creator>
    <dc:date>2012-02-28T00:50:57</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/660">
    <title>Adding netcf support to FreeBSD</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/660</link>
    <description>&lt;pre&gt;Hi Folks,

I am trying to make netcf work with FreeBSD.
I am looking for more documentation on xml part of it. (I think augeas is
used for xml/xslt?)

I can "list" the interfaces but "dumpxml" does not work as I need to
prepare xml/xsl scaffolding.

Any pointers would be appreciated.

Thanks,
Hiren
_______________________________________________
netcf-devel mailing list
netcf-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel
&lt;/pre&gt;</description>
    <dc:creator>hiren panchasara</dc:creator>
    <dc:date>2012-02-06T18:47:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/657">
    <title>ncftool manpage</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/657</link>
    <description>&lt;pre&gt;I added nothing of value here, just turned the 'ncftool help' output
into a ncftool.1 manpage.

thanks,
-serge

.TH NCFTOOL 1 "December 20, 2011"
.SH NAME
ncftool \- Network configuration tool
.SH SYNOPSIS
.B ncftool [options]
.SH DESCRIPTION
ncftool is a command line utility to configure networking.
.SH OPTIONS
.TP
.B list [\-\-macs] [\-\-all] [\-\-inactive]
List the currently configured toplevel network interfaces

.br
.BR [\-\-macs]
show MAC addresses
.br
.BR [\-\-all]
show all (up &amp;amp; down) interfaces
.br
.BR [\-\-inactive]
show only inactive (down) interfaces
.TP
.B dumpxml [\-\-mac] [\-\-live] &amp;lt;name&amp;gt;
Dump the XML description of an interface

.br
.BR [\-\-mac]
interpret the name as MAC address
.br
.BR [\-\-life]
include information about the live interface
.br
.BR &amp;lt;name&amp;gt;
the name of the interface
.TP
.B define &amp;lt;xmlfile&amp;gt;
Define - define an interface from an XML file

.br
.BR &amp;lt;xmlfile&amp;gt;
file containing the XML description of the interface
.TP
.B undefine &amp;lt;iface&amp;gt;
Remove the configuration of an interface

.br
.BR &amp;lt;iface&amp;gt;
the name of the interface
.TP
.B ifup &amp;lt;iface&amp;gt;
Bring up an interface

.br
.BR &amp;lt;iface&amp;gt;
the name of the interface
.TP
.B ifdown &amp;lt;iface&amp;gt;
Bring down an interface

.br
.BR &amp;lt;iface&amp;gt;
the name of the interface
.TP
.B change-begin
Mark the beginning of a set of revertible network config changes
.TP
.B change-commit
Commit (makes permanent) of a set of network config changes
.TP
.B change-rollback
Rollback (revert) a set of network config changes
.TP
.B help [&amp;lt;command&amp;gt;]
List all commands or print details about one command

.br
.BR &amp;lt;command&amp;gt;
If specified, list help about the listed command.  Otherwise list all commands.
.TP
.B quit
Exit the program
.TP
.SH SEE ALSO
.BR interfaces (5)
.SH AUTHOR
Serge Hallyn &amp;lt;serge.hallyn&amp;lt; at &amp;gt;ubuntu.com&amp;gt;
_______________________________________________
netcf-devel mailing list
netcf-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel
&lt;/pre&gt;</description>
    <dc:creator>Serge Hallyn</dc:creator>
    <dc:date>2011-12-20T16:44:29</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/652">
    <title>copyrights</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/652</link>
    <description>&lt;pre&gt;Hi,

I'm trying to finish the debian/ubuntu netcf package, and trying to make
sure I get copyrights right.  The debian/copyright file I have so far is
below.  There are a lot of xml files under tests/ and data/ (i.e.
./tests/suse/schema/vlan.xml) which have no attribution.  Are they all
the same license and copyright as the main project, or were some taken
from other projects?

thanks,
-serge

====================== debian/copyright ==========================

Format: http://dep.debian.net/deps/dep5
Upstream-Name: netcf
Source: http://git.fedorahosted.org/git/?p=netcf.git

Files: tests/cutest.*
Copyright: 2003 Asim Jalis
License:
 .
 This software is provided 'as-is', without any express or implied
 warranty. In no event will the authors be held liable for any damages
 arising from the use of this software.
 .
 Permission is granted to anyone to use this software for any purpose,
 including commercial applications, and to alter it and redistribute it
 freely, subject to the following restrictions:
 .
 1. The origin of this software must not be misrepresented; you must not
 claim that you wrote the original software. If you use this software in
 a product, an acknowledgment in the product documentation would be
 appreciated but is not required.
 .
 2. Altered source versions must be plainly marked as such, and must not be
 misrepresented as being the original software.
 .
 3. This notice may not be removed or altered from any source distribution.

Files: *
Copyright: 2009-2011 David Lutterkort &amp;lt;lutter&amp;lt; at &amp;gt;redhat.com&amp;gt;
           2009-2011 Laine Stump &amp;lt;laine&amp;lt; at &amp;gt;laine.org&amp;gt;
           2009 Daniel Veillard &amp;lt;veillard&amp;lt; at &amp;gt;redhat.com&amp;gt;
           2009 Jonas Eriksson &amp;lt;jonas.j.eriksson&amp;lt; at &amp;gt;ericsson.com&amp;gt;
           2009,2011 Daniel Berrange &amp;lt;berrange&amp;lt; at &amp;gt;redhat.com&amp;gt;
           2010 Cole Robinson &amp;lt;crobinso&amp;lt; at &amp;gt;redhat.com&amp;gt;
           2010,2011 Eric Blake &amp;lt;eblake&amp;lt; at &amp;gt;redhat.com&amp;gt;
           2011 Osier Yang &amp;lt;jyang&amp;lt; at &amp;gt;redhat.com&amp;gt;
           2011 Aleix Conchillo &amp;lt;aleix&amp;lt; at &amp;gt;oblong.com&amp;gt;
License: GNU LESSER GENERAL PUBLIC LICENSE
 .
 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 2.1 of the License, or (at your option) any later version.
 .
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 Lesser General Public License for more details.
 .
 You should have received a copy of the GNU Lesser General Public
 License along with this library; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.

Files: debian/*
Copyright: 2011 Ubuntu &amp;lt;ubuntu&amp;lt; at &amp;gt;unknown&amp;gt;
License: GPL-2+
 This package is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.
 .
 This package is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 .
 You should have received a copy of the GNU General Public License
 along with this program. If not, see &amp;lt;http://www.gnu.org/licenses/&amp;gt;
 .
 On Debian systems, the complete text of the GNU General
 Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".

# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
_______________________________________________
netcf-devel mailing list
netcf-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel
&lt;/pre&gt;</description>
    <dc:creator>Serge E. Hallyn</dc:creator>
    <dc:date>2011-11-17T18:08:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/651">
    <title>Fix to allow definitions with multiple ipv4 addresses for arp monitoring</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/651</link>
    <description>&lt;pre&gt;Hi!

It's me again and I have a new patch. I don't know if I went about this the correct way but it solved a problem we had.

We wanted to define multiple targets for arp monitoring. Having multiple targets actually works except it is disallowed by the parser so I created a new definition called ipv4-multi-addr to solve it.

This might not be the correct solution so please advice me on how to further improve this in order to better suit the netcf code base.

Thanks!

// Jens

Patch:

--- interface.rng       2010-06-17 15:40:45.000000000 +0200
+++ interface.rng.new   2011-10-31 14:56:36.000000000 +0100
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -202,7 +202,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
           &amp;lt;/element&amp;gt;
           &amp;lt;element name="arpmon"&amp;gt;
             &amp;lt;attribute name="interval"&amp;gt;&amp;lt;ref name="uint"/&amp;gt;&amp;lt;/attribute&amp;gt;
-            &amp;lt;attribute name="target"&amp;gt;&amp;lt;ref name="ipv4-addr"/&amp;gt;&amp;lt;/attribute&amp;gt;
+            &amp;lt;attribute name="target"&amp;gt;&amp;lt;ref name="ipv4-multi-addr"/&amp;gt;&amp;lt;/attribute&amp;gt;
             &amp;lt;optional&amp;gt;
               &amp;lt;attribute name="validate"&amp;gt;
                 &amp;lt;choice&amp;gt;
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -446,6 +446,12 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
     &amp;lt;/data&amp;gt;
   &amp;lt;/define&amp;gt;
 
+  &amp;lt;define name='ipv4-multi-addr'&amp;gt;
+    &amp;lt;data type='string'&amp;gt;
+      &amp;lt;param name="pattern"&amp;gt;(((25[0-5])|(1[0-9]{2})|(2[0-4][0-9])|([0-9]{1,2}))\.){3}((25[0-5])|(1[0-9]{2})|(2[0-4][0-9])|([0-9]{1,2}))(,(((25[0-5])|(1[0-9]{2})|(2[0-4][0-9])|([0-9]{1,2}))\.){3}((25[0-5])|(1[0-9]{2})|(2[0-4][0-9])|([0-9]{1,2})))*&amp;lt;/param&amp;gt;
+    &amp;lt;/data&amp;gt;
+  &amp;lt;/define&amp;gt;
+
   &amp;lt;define name='ipv4-prefix'&amp;gt;
     &amp;lt;data type='unsignedInt'&amp;gt;
       &amp;lt;param name="maxInclusive"&amp;gt;32&amp;lt;/param&amp;gt;
_______________________________________________
netcf-devel mailing list
netcf-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel
&lt;/pre&gt;</description>
    <dc:creator>Jens Nyberg I</dc:creator>
    <dc:date>2011-10-31T14:08:05</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/650">
    <title>Fixed a bug in netcf when netmask is bigger than 24</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/650</link>
    <description>&lt;pre&gt;Hi,

I noticed a bug in netcf when setting a netmask larger than /24.

This patch consist of:

* Removed a -1 in the inet_ntop call which is the actual bug that made the string incorrect.
* Changed the way you calculate the netmask ip in a more intuitive way - feel free to ignore it if you want.

--- xslt_ext.c  2011-10-26 17:42:54.000000000 +0200
+++ xslt_ext.c.new      2011-10-26 17:39:16.000000000 +0200
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -71,10 +71,10 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
     struct in_addr netmask;
     xmlChar netmask_str[16];

-    netmask.s_addr = htonl(~((1 &amp;lt;&amp;lt; (32 - prefix)) - 1));
+    netmask.s_addr = htonl(~(0xffffffff &amp;gt;&amp;gt; prefix));

     if (! inet_ntop(AF_INET, &amp;amp;netmask,
-                    (char *) netmask_str, sizeof(netmask_str) - 1)) {
+                    (char *) netmask_str, sizeof(netmask_str))) {
         xsltTransformError(xsltXPathGetTransformContext(ctxt), NULL, NULL,
                     "ipcalc:netmask: internal error: inet_ntop failed");
         goto error;


_______________________________________________
netcf-devel mailing list
netcf-devel&amp;lt; at &amp;gt;lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel
&lt;/pre&gt;</description>
    <dc:creator>Jens Nyberg I</dc:creator>
    <dc:date>2011-10-31T11:23:43</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/645">
    <title>debian version</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/645</link>
    <description>&lt;pre&gt;Hi,

for the last two days I've been trying to get the debian version of ncftool
(I think not much changes since I put it up at
http://people.canonical.com/~serge/netcf - I should put up a source tree, I
know) to actually write out a new /etc/network/interfaces files when doing
ncftool define br.xml.  It claims success, but /etc/network/interfaces never
gets written, even though aug_save() gets called.

I've instrumented augeas's aug_set() and tree_store_value() to verify that
the following are being set:

aug_set: setting /files/etc/network/interfaces/auto[3]/1 to br0
aug_set: setting /files/etc/network/interfaces/iface[3] to br0
aug_set: setting /files/etc/network/interfaces/iface[3]/family to inet
aug_set: setting /files/etc/network/interfaces/iface[3]/method to dhcp
aug_set: setting /files/etc/network/interfaces/iface[3]/mtu to 1500
aug_set: setting /files/etc/network/interfaces/iface[3]/bridge_ports to eth0
aug_set: setting /files/etc/network/interfaces/iface[3]/bridge_stp to off
aug_set: setting /files/etc/network/interfaces/iface[3]/bridge_fd to 0.01

tree_store_value() now looks as follows, in case you're wondering:

void tree_store_value(struct tree *tree, char **value) {
#if 0
    if (streqv(tree-&amp;gt;value, *value)) {
        free(*value);
        *value = NULL;
        return;
    }
#endif
    if (tree-&amp;gt;value != NULL) {
        free(tree-&amp;gt;value);
        tree-&amp;gt;value = NULL;
    }
    if (*value != NULL) {
        tree-&amp;gt;value = *value;
        *value = NULL;
    }
    {   
        FILE *f = fopen("/tmp/log4", "a");
        if (f) {
            fprintf(f, "tree_set_value: setting %s to %s\n",
                tree-&amp;gt;label, tree-&amp;gt;value);
            fclose(f);
        }
    }
    tree_mark_dirty(tree);
}

and log4 does get populated with entries for each of the above (showing
only the last part of the path of course).  So it seems there should be
no doubt that the values are, in fact being set.

But when I do

    {  
        FILE *f = fopen("/tmp/log7", "a");
        aug_print(aug, f, NULL);
        fclose(f);
    }

either before or after the aug_save in drv_define, the new rules are not
there!  (no 'bridge_ports' to be found at all in the output, for instance)
So the rules are disappearing before we get to aug_save(0).

Any ideas?

-serge

PS - I've used augtool by hand to verify that doing

set /files/etc/network/interfaces/auto[3]/1 br0
set /files/etc/network/interfaces/iface[3] br0
set /files/etc/network/interfaces/iface[3]/family inet
set /files/etc/network/interfaces/iface[3]/method dhcp
set /files/etc/network/interfaces/iface[3]/mtu 1500
set /files/etc/network/interfaces/iface[3]/bridge_ports eth0
set /files/etc/network/interfaces/iface[3]/bridge_stp off
set /files/etc/network/interfaces/iface[3]/bridge_fd 0.01
save

creates the right new /etc/network/interfaces file.

PPS - here is the br.xml I'm using:
&amp;lt;interface type="bridge" name="br0"&amp;gt;
  &amp;lt;start mode="onboot"/&amp;gt;
  &amp;lt;mtu size="1500"/&amp;gt;
  &amp;lt;protocol family="ipv4"&amp;gt;
    &amp;lt;dhcp/&amp;gt;
  &amp;lt;/protocol&amp;gt;
  &amp;lt;bridge stp="off" delay="0.01"&amp;gt;
    &amp;lt;interface type="ethernet" name="eth0"&amp;gt;
&amp;lt;!--      &amp;lt;mac address="ab:bb:cc:dd:ee:ff"/&amp;gt;--&amp;gt;
    &amp;lt;/interface&amp;gt;
  &amp;lt;/bridge&amp;gt;
&amp;lt;/interface&amp;gt;
&lt;/pre&gt;</description>
    <dc:creator>Serge E. Hallyn</dc:creator>
    <dc:date>2011-10-27T22:58:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/644">
    <title>Not possible to define a netmask higher than 24through virsh</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/644</link>
    <description>&lt;pre&gt;virsh fails to create an interface that has a netmask higher than 24 bits

--
_______________________________________________
netcf-devel mailing list
netcf-devel-TuqUDEhatI7GMZAyRF5v151Ccm5ICvs9&amp;lt; at &amp;gt;public.gmane.org
https://fedorahosted.org/mailman/listinfo/netcf-devel
&lt;/pre&gt;</description>
    <dc:creator>ehiwere.matthew-EkmVulN54Sk&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2011-10-21T12:08:41</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/638">
    <title>[PATCH] Fix build errors when using-Werror=unused-but-set-variable</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/638</link>
    <description>&lt;pre&gt;From: Laine Stump &amp;lt;laine-/P6jbUKV17TZ+VzJOa5vwg&amp;lt; at &amp;gt;public.gmane.org&amp;gt;

The following errors appeared when I began building on Fedora 16. In
all cases, the variables really are never used, so they've been
removed.

drv_redhat.c: In function 'find_ifcfg_path_by_device':
drv_redhat.c:169:20: error: variable 'aug' set but not used
                            [-Werror=unused-but-set-variable]
drv_redhat.c: In function 'list_interfaces':
drv_redhat.c:315:20: error: variable 'aug' set but not used
                            [-Werror=unused-but-set-variable]
drv_redhat.c: In function 'drv_lookup_by_name':
drv_redhat.c:465:20: error: variable 'aug' set but not used
                            [-Werror=unused-but-set-variable]
drv_redhat.c: In function 'aug_put_xml':
drv_redhat.c:555:13: error: variable 'toplevel' set but not used
                            [-Werror=unused-but-set-variable]
drv_redhat.c: In function 'drv_lookup_by_mac_string':
drv_redhat.c:942:20: error: variable 'aug' set but not used
                            [-Werror=unused-but-set-variable]
---
 src/drv_redhat.c |   17 ++++-------------
 1 files changed, 4 insertions(+), 13 deletions(-)

diff --git a/src/drv_redhat.c b/src/drv_redhat.c
index f290cdb..d2c7971 100644
--- a/src/drv_redhat.c
+++ b/src/drv_redhat.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -166,11 +166,10 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static char *find_ifcfg_path_by_hwaddr(struct netcf *ncf, const char *mac) {
  * interface by checking for an entry 'DEVICE=NAME'
  */
 static char *find_ifcfg_path_by_device(struct netcf *ncf, const char *name) {
-    struct augeas *aug = NULL;
     int ndevs = 0;
     char **devs = NULL;
 
-    aug = get_augeas(ncf);
+    get_augeas(ncf);
     ERR_BAIL(ncf);
 
     ndevs = aug_fmt_match(ncf, &amp;amp;devs, "%s[DEVICE = '%s']",
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -312,9 +311,8 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int list_ifcfg_paths(struct netcf *ncf, char ***intf) {
 
 static int list_interfaces(struct netcf *ncf, char ***intf) {
     int nint = 0, result = 0;
-    struct augeas *aug = NULL;
 
-    aug = get_augeas(ncf);
+    get_augeas(ncf);
     ERR_BAIL(ncf);
 
     /* Look in augeas for all interfaces */
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -462,9 +460,8 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; struct netcf_if *drv_lookup_by_name(struct netcf *ncf, const char *name) {
     struct netcf_if *nif = NULL;
     char *pathx = NULL;
     char *name_dup = NULL;
-    struct augeas *aug;
 
-    aug = get_augeas(ncf);
+    get_augeas(ncf);
     ERR_BAIL(ncf);
 
     pathx = find_ifcfg_path(ncf, name);
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -552,17 +549,12 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int aug_put_xml(struct netcf *ncf, xmlDocPtr xml) {
                   EINTERNAL, "expected node labeled 'tree', not '%s'",
                   tree-&amp;gt;name);
         path = xml_prop(tree, "path");
-        int toplevel = 1;
         /* This is a little drastic, since it clears out the file entirely */
         r = aug_rm(aug, path);
         ERR_THROW(r &amp;lt; 0, ncf, EINTERNAL, "aug_rm of '%s' failed", path);
         list_for_each(node, tree-&amp;gt;children) {
             label = xml_prop(node, "label");
             value = xml_prop(node, "value");
-            /* We should mark the toplevel interface from the XSLT */
-            if (STREQ(label, "BRIDGE") || STREQ(label, "MASTER")) {
-                toplevel = 0;
-            }
             r = xasprintf(&amp;amp;lpath, "%s/%s", path, label);
             ERR_NOMEM(r &amp;lt; 0, ncf);
 
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -939,7 +931,6 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; int drv_undefine(struct netcf_if *nif) {
 int drv_lookup_by_mac_string(struct netcf *ncf, const char *mac,
                              int maxifaces, struct netcf_if **ifaces)
 {
-    struct augeas *aug = NULL;
     char *path = NULL, *ifcfg = NULL;
     const char **names = NULL;
     int nmatches = 0;
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -949,7 +940,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; int drv_lookup_by_mac_string(struct netcf *ncf, const char *mac,
 
     MEMZERO(ifaces, maxifaces);
 
-    aug = get_augeas(ncf);
+    get_augeas(ncf);
     ERR_BAIL(ncf);
 
     nmatches = aug_match_mac(ncf, mac, &amp;amp;matches);
&lt;/pre&gt;</description>
    <dc:creator>Laine Stump</dc:creator>
    <dc:date>2011-10-12T04:20:29</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/636">
    <title>[PATCH] ncftool: avoid memory leak</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/636</link>
    <description>&lt;pre&gt;From: Alex Jia &amp;lt;ajia-H+wXaHxf7aLQT0dZR+AlfA&amp;lt; at &amp;gt;public.gmane.org&amp;gt;

* src/ncftool.c: Calling allocation function 'ncf_lookup_by_name' to allocate
  memory to 'nif', however, it hasn't been released before return.

Signed-off-by: Alex Jia &amp;lt;ajia-H+wXaHxf7aLQT0dZR+AlfA&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
---
 src/ncftool.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/ncftool.c b/src/ncftool.c
index c9e26a2..90c6cbf 100644
--- a/src/ncftool.c
+++ b/src/ncftool.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -390,8 +390,10 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int cmd_undefine(const struct command *cmd) {
         return CMD_RES_ERR;
 
     r = ncf_if_undefine(nif);
-    if (r &amp;lt; 0)
+    if (r &amp;lt; 0) {
+        ncf_if_free(nif);
         return CMD_RES_ERR;
+    }
 
     printf("%s undefined\n", name);
     ncf_if_free(nif);
&lt;/pre&gt;</description>
    <dc:creator>ajia-H+wXaHxf7aLQT0dZR+AlfA&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2011-09-27T06:25:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/619">
    <title>[PATCH] Fix missing vlan/bond/ethernet info indumpxml --live</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/619</link>
    <description>&lt;pre&gt;This patch addresses:

  https://bugzilla.redhat.com/show_bug.cgi?id=736920
  https://bugzilla.redhat.com/show_bug.cgi?id=739505

Commit 38f44cf (pushed between 0.1.8 and 0.1.9) put a check for an
invalid ifindex into the functions that add type-specific status data
to the xml document (e.g. the mac address of an ethernet, or tag of a
vlan). This check was inadvertently done incorrectly ("ifindex !=
RTNL_LINK_NOT_FOUND" rather than "ifindex == RTNL_LINK_NOT_FOUND").
This patch corrects that error.

Because these functions are a part of the code to gather info from the
kernel via libnl (netlink) calls, there is unfortunately no simple way
to incorporate a build-time test to prevent similar regressions in the
future; we will instead have to rely on separate testing.
---
 src/dutil_linux.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/dutil_linux.c b/src/dutil_linux.c
index 75492ba..730be45 100644
--- a/src/dutil_linux.c
+++ b/src/dutil_linux.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -909,7 +909,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static void add_ethernet_info(struct netcf *ncf,
     struct rtnl_link *filter_link = NULL;
 
     /* if interface isn't currently available, nothing to add */
-    if (ifindex != RTNL_LINK_NOT_FOUND)
+    if (ifindex == RTNL_LINK_NOT_FOUND)
         return;
 
     filter_link = rtnl_link_alloc();
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -998,7 +998,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static void add_vlan_info(struct netcf *ncf,
     struct rtnl_link *filter_link = NULL;
 
     /* if interface isn't currently available, nothing to add */
-    if (ifindex != RTNL_LINK_NOT_FOUND)
+    if (ifindex == RTNL_LINK_NOT_FOUND)
         return;
 
     filter_link = rtnl_link_alloc();
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1113,7 +1113,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static void add_bond_info(struct netcf *ncf,
         = { doc, root, NULL, ifindex, ncf };
 
     /* if interface isn't currently available, nothing to add */
-    if (ifindex != RTNL_LINK_NOT_FOUND)
+    if (ifindex == RTNL_LINK_NOT_FOUND)
         return;
 
     nl_cache_foreach(ncf-&amp;gt;driver-&amp;gt;link_cache, add_bond_info_cb, &amp;amp;cb_data);
&lt;/pre&gt;</description>
    <dc:creator>Laine Stump</dc:creator>
    <dc:date>2011-09-22T11:34:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/607">
    <title>[PATCH 0/11] Support for Debian/Suse/Windows distros</title>
    <link>http://comments.gmane.org/gmane.comp.sysutils.netcf.devel/607</link>
    <description>&lt;pre&gt;This is an update to

 https://fedorahosted.org/pipermail/netcf-devel/2011-September/000601.html

As before it includes the Debian driver which is fully functional.

In v2 though, it also includes

 - The Suse driver taken from OpenSuse netcf RPMs. This is only
   partially complete and apparently only works for plain ethernet
   devices, not bridging/bonding
 - The Windows driver developed by Adam Stokes. This is only
   partially complete, only able to list devices and bring them
   up / down. No XML query/define support at all.
 - Update to the bootstrap scripts
 - An automated build script

IMHO, we should include the Suse/Windows drivers as they are,
even though they're incomplete, since this might motivate
someone into fixing them up further
&lt;/pre&gt;</description>
    <dc:creator>Daniel P. Berrange</dc:creator>
    <dc:date>2011-09-21T16:50:12</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.sysutils.netcf.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.sysutils.netcf.devel</link>
  </textinput>
</rdf:RDF>

