<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openvswitch.git/python/build, branch dpdk-hwol</title>
<subtitle>github.com: openvswitch/ovs.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/'/>
<entry>
<title>python: Fix invalid escape sequences.</title>
<updated>2019-01-11T16:45:04+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@ovn.org</email>
</author>
<published>2019-01-10T23:23:45+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=145a7e88bbc71b65f4c5015436c9f086a19b5a4a'/>
<id>145a7e88bbc71b65f4c5015436c9f086a19b5a4a</id>
<content type='text'>
It appears that Python silently treats invalid escape sequences in
strings as literals, e.g. "\." is the same as "\\.".  Newer versions of
checkpatch complain, and it does seem reasonable to me to fix these.

Acked-by: Numan Siddique &lt;nusiddiq@redhat.com&gt;
Tested-by: Numan Siddique &lt;nusiddiq@redhat.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It appears that Python silently treats invalid escape sequences in
strings as literals, e.g. "\." is the same as "\\.".  Newer versions of
checkpatch complain, and it does seem reasonable to me to fix these.

Acked-by: Numan Siddique &lt;nusiddiq@redhat.com&gt;
Tested-by: Numan Siddique &lt;nusiddiq@redhat.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nroff: Fix fonts for h2, h3, h4.</title>
<updated>2019-01-10T23:52:05+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@ovn.org</email>
</author>
<published>2018-11-09T05:39:54+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=a31c38ad0baeb6672c7c264a2b69ce198f4a75dd'/>
<id>a31c38ad0baeb6672c7c264a2b69ce198f4a75dd</id>
<content type='text'>
Without this change, the fonts are wrong if a title contains formatting
like &lt;code&gt; or &lt;var&gt;.

Acked-by: Mark Michelson &lt;mmichels@redhat.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Without this change, the fonts are wrong if a title contains formatting
like &lt;code&gt; or &lt;var&gt;.

Acked-by: Mark Michelson &lt;mmichels@redhat.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nroff: Increase width for .IP used for ordered lists.</title>
<updated>2019-01-10T23:52:05+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@ovn.org</email>
</author>
<published>2018-11-09T05:39:53+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=63187cff997e7ccdccc8325ea15e31de77371a58'/>
<id>63187cff997e7ccdccc8325ea15e31de77371a58</id>
<content type='text'>
The ordered lists that a .25in width produced looked OK in PostScript
or PDF output, but in text output every list item spanned two lines,
like this:

   1.
     First list item.
   2.
     Second list item.

With this change, they appear normally:

   1. First list item.
   2. Second list item.

Acked-by: Mark Michelson &lt;mmichels@redhat.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The ordered lists that a .25in width produced looked OK in PostScript
or PDF output, but in text output every list item spanned two lines,
like this:

   1.
     First list item.
   2.
     Second list item.

With this change, they appear normally:

   1. First list item.
   2. Second list item.

Acked-by: Mark Michelson &lt;mmichels@redhat.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ovsdb: Improve documentation.</title>
<updated>2017-12-14T19:21:42+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@ovn.org</email>
</author>
<published>2017-12-14T19:17:23+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=12b84d50e0324727a24fc5aa378497e1dbe41821'/>
<id>12b84d50e0324727a24fc5aa378497e1dbe41821</id>
<content type='text'>
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Justin Pettit &lt;jpettit@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Justin Pettit &lt;jpettit@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Convert soexpand build tool from Perl to Python.</title>
<updated>2017-11-27T00:08:07+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@ovn.org</email>
</author>
<published>2017-11-20T17:41:42+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=74eaac06d61e918ce4bb82611c6f5905c77d94e4'/>
<id>74eaac06d61e918ce4bb82611c6f5905c77d94e4</id>
<content type='text'>
Perl is unfashionable and Python is more widely available and understood,
so this commit converts one of the OVS uses of Perl into Python.

Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Aaron Conole &lt;aconole@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Perl is unfashionable and Python is more widely available and understood,
so this commit converts one of the OVS uses of Perl into Python.

Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Aaron Conole &lt;aconole@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Python3 compatibility: fix integer problems</title>
<updated>2017-07-06T21:06:08+00:00</updated>
<author>
<name>Jason Wessel</name>
<email>jason.wessel@windriver.com</email>
</author>
<published>2017-06-30T03:33:23+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=fa145f1a53943243f94a32ce98525db8494b0052'/>
<id>fa145f1a53943243f94a32ce98525db8494b0052</id>
<content type='text'>
In python3 maxint is not defined, but maxsize is defined in both
python2 and python3.

The put_text() will not automatically use a value which came in as
float due to a pior math function and python3 will throw an exception.
The simple answer is to convert it with int() and move on.

Signed-off-by: Jason Wessel &lt;jason.wessel@windriver.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In python3 maxint is not defined, but maxsize is defined in both
python2 and python3.

The put_text() will not automatically use a value which came in as
float due to a pior math function and python3 will throw an exception.
The simple answer is to convert it with int() and move on.

Signed-off-by: Jason Wessel &lt;jason.wessel@windriver.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ovs-fields: New manpage to document Open vSwitch and OpenFlow fields.</title>
<updated>2017-01-25T21:58:04+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@ovn.org</email>
</author>
<published>2017-01-25T21:58:03+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=96fee5e0a2a085367e27c79e57f70be2abee683a'/>
<id>96fee5e0a2a085367e27c79e57f70be2abee683a</id>
<content type='text'>
There is still plenty of opportunity for improvement, but this new
ovs-fields(7) manpage is much more comprehensive than ovs-ofctl(8)
could be.

Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Justin Pettit &lt;jpettit@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is still plenty of opportunity for improvement, but this new
ovs-fields(7) manpage is much more comprehensive than ovs-ofctl(8)
could be.

Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Justin Pettit &lt;jpettit@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nroff: Improve formatting of ASCII diagrams.</title>
<updated>2017-01-25T21:53:31+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@ovn.org</email>
</author>
<published>2016-12-28T20:41:31+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=902323d32ed7656b58c9c37d5ac9ebe7986b0a68'/>
<id>902323d32ed7656b58c9c37d5ac9ebe7986b0a68</id>
<content type='text'>
This makes diagrams in ASCII output look about as good as one might
reasonably expect, so that in ovn-architecture(7), for example, this:

. 9 bits: reserved (0)
. 15 bits: ingress port
. 16 bits: egress port
. 24 bits: datapath

now gets formatted as:

    9          15          16         24
+--------+------------+-----------+--------+
|reserved|ingress port|egress port|datapath|
+--------+------------+-----------+--------+
    0

which isn't perfect but certainly more evocative than a bulleted list.

This will be more useful in upcoming commits that start using diagrams more
frequently.

Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes diagrams in ASCII output look about as good as one might
reasonably expect, so that in ovn-architecture(7), for example, this:

. 9 bits: reserved (0)
. 15 bits: ingress port
. 16 bits: egress port
. 24 bits: datapath

now gets formatted as:

    9          15          16         24
+--------+------------+-----------+--------+
|reserved|ingress port|egress port|datapath|
+--------+------------+-----------+--------+
    0

which isn't perfect but certainly more evocative than a bulleted list.

This will be more useful in upcoming commits that start using diagrams more
frequently.

Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>python: Fix nroff indentation for &lt;dl&gt; after &lt;hN&gt;.</title>
<updated>2017-01-06T20:38:01+00:00</updated>
<author>
<name>Joe Stringer</name>
<email>joe@ovn.org</email>
</author>
<published>2017-01-06T02:09:35+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=44b8deff151b60b41af7f082e501033773caedad'/>
<id>44b8deff151b60b41af7f082e501033773caedad</id>
<content type='text'>
When XML is used for writing manpages, in the case that there is a
header tag followed by &lt;dl&gt;, the nroff python utility indents the &lt;dl&gt;
tag (and children) an extra level which is unnecessary and makes the
formatting inconsistent between manpages written directly in nroff vs
manpages written in XML and converted to nroff. Fix the indentation by
removing the extraneous .RS / .RE tags added to generated nroff in this
case.

This fixes the formatting of ovn/utilities/ovn-nbctl.8 man page.

Signed-off-by: Joe Stringer &lt;joe@ovn.org&gt;
Acked-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When XML is used for writing manpages, in the case that there is a
header tag followed by &lt;dl&gt;, the nroff python utility indents the &lt;dl&gt;
tag (and children) an extra level which is unnecessary and makes the
formatting inconsistent between manpages written directly in nroff vs
manpages written in XML and converted to nroff. Fix the indentation by
removing the extraneous .RS / .RE tags added to generated nroff in this
case.

This fixes the formatting of ovn/utilities/ovn-nbctl.8 man page.

Signed-off-by: Joe Stringer &lt;joe@ovn.org&gt;
Acked-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>python: Convert dict iterators.</title>
<updated>2016-01-22T04:00:11+00:00</updated>
<author>
<name>Russell Bryant</name>
<email>russell@ovn.org</email>
</author>
<published>2015-12-14T20:13:20+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=cb96c1b27e502c591eeeb831f04d92b400d757f4'/>
<id>cb96c1b27e502c591eeeb831f04d92b400d757f4</id>
<content type='text'>
In Python 2, dict.items(), dict.keys(), and dict.values() returned a
list.  dict.iteritems(), dict.iterkeys(), and dict.itervalues() returned
an iterator.

As of Python 3, dict.iteritems(), dict.itervalues(), and dict.iterkeys()
are gone.  items(), keys(), and values() now return an iterator.

In the case where we want an iterator, we now use the six.iter*()
helpers.  If we want a list, we explicitly create a list from the
iterator.

Signed-off-by: Russell Bryant &lt;russell@ovn.org&gt;
Acked-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Python 2, dict.items(), dict.keys(), and dict.values() returned a
list.  dict.iteritems(), dict.iterkeys(), and dict.itervalues() returned
an iterator.

As of Python 3, dict.iteritems(), dict.itervalues(), and dict.iterkeys()
are gone.  items(), keys(), and values() now return an iterator.

In the case where we want an iterator, we now use the six.iter*()
helpers.  If we want a list, we explicitly create a list from the
iterator.

Signed-off-by: Russell Bryant &lt;russell@ovn.org&gt;
Acked-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
