<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openvswitch.git/python, branch elephant</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>socket_util.py: Make set_dscp() python 2.4.3 compatible.</title>
<updated>2014-06-24T17:08:08+00:00</updated>
<author>
<name>Gurucharan Shetty</name>
<email>gshetty@nicira.com</email>
</author>
<published>2014-06-19T17:38:20+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=c620aaae644f33d9aac9b0337d45d6bd910ee01d'/>
<id>c620aaae644f33d9aac9b0337d45d6bd910ee01d</id>
<content type='text'>
There is no 'errno' field in socket.error. Instead use the
get_exception_errno() function to get the error number.

Signed-off-by: Gurucharan Shetty &lt;gshetty@nicira.com&gt;
Acked-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is no 'errno' field in socket.error. Instead use the
get_exception_errno() function to get the error number.

Signed-off-by: Gurucharan Shetty &lt;gshetty@nicira.com&gt;
Acked-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>timeval: Add monotonic time functionality for NetBSD and FreeBSD.</title>
<updated>2014-06-04T17:34:56+00:00</updated>
<author>
<name>Ryan Wilson</name>
<email>wryan@nicira.com</email>
</author>
<published>2014-06-03T05:47:15+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=50a1a1d2cc2b8fb573076ff6ee0e4f790919118b'/>
<id>50a1a1d2cc2b8fb573076ff6ee0e4f790919118b</id>
<content type='text'>
This patch also checks the system platform as clock_gettime
could exist on different platforms but with different values of
CLOCK_MONOTONIC and different definitions of 'struct timespec'.
In this case, the system call would be expected to catch the
error, which is dangerous.

This patch ensures Linux, NetBSD and FreeBSD platforms use
clock_gettime with their corresponding correct values and
definitions. All other platforms use time.time().

Signed-off-by: Ryan Wilson &lt;wryan@nicira.com&gt;
Acked-by: YAMAMOTO Takashi &lt;yamamoto@valinux.co.jp&gt;
Signed-off-by: YAMAMOTO Takashi &lt;yamamoto@valinux.co.jp&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch also checks the system platform as clock_gettime
could exist on different platforms but with different values of
CLOCK_MONOTONIC and different definitions of 'struct timespec'.
In this case, the system call would be expected to catch the
error, which is dangerous.

This patch ensures Linux, NetBSD and FreeBSD platforms use
clock_gettime with their corresponding correct values and
definitions. All other platforms use time.time().

Signed-off-by: Ryan Wilson &lt;wryan@nicira.com&gt;
Acked-by: YAMAMOTO Takashi &lt;yamamoto@valinux.co.jp&gt;
Signed-off-by: YAMAMOTO Takashi &lt;yamamoto@valinux.co.jp&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>timeval: Import ctypes Python library within a try statement.</title>
<updated>2014-05-31T00:37:10+00:00</updated>
<author>
<name>Ryan Wilson</name>
<email>wryan@nicira.com</email>
</author>
<published>2014-05-31T00:36:46+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=813c5ba585f59eeffb81a185bb6e14f96bc47cc2'/>
<id>813c5ba585f59eeffb81a185bb6e14f96bc47cc2</id>
<content type='text'>
Older versions of Python do not have ctypes as a default installed
package. This patch puts the 'import ctypes' statement inside a try
statement.

This fixes a bug introduced by commit 8396f (timeval: Use monotonic
time in OVS Python timeval library).

Signed-off-by: Ryan Wilson &lt;wryan@nicira.com&gt;
Acked-by: Alex Wang &lt;alexw@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Older versions of Python do not have ctypes as a default installed
package. This patch puts the 'import ctypes' statement inside a try
statement.

This fixes a bug introduced by commit 8396f (timeval: Use monotonic
time in OVS Python timeval library).

Signed-off-by: Ryan Wilson &lt;wryan@nicira.com&gt;
Acked-by: Alex Wang &lt;alexw@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>timeval: Use monotonic time in OVS Python timeval library.</title>
<updated>2014-05-30T22:43:43+00:00</updated>
<author>
<name>Ryan Wilson</name>
<email>wryan@nicira.com</email>
</author>
<published>2014-05-30T22:38:51+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=8396f8070bb35006fcd14486296fb203646a8dfa'/>
<id>8396f8070bb35006fcd14486296fb203646a8dfa</id>
<content type='text'>
Python's time.time() function uses the system wall clock. However,
if NTP resets the wall clock to be a time in the past, then this
causes any applications that poll block based on time, such as
ovs-xapi-sync, to poll block indefinitely since the time is
unexpectedly negative.

This patch fixes the issue by using time.monotonic() if Python's
version &gt;= 3.3. Otherwise, the timeval module calls out to the
librt C shared library and uses the clock_gettime function with
CLOCK_MONOTONIC.

Note this is only enabled on Linux-based platforms. This has been
tested on Ubuntu 12.04 and Redhat 6.4.

Bug #1189434
Signed-off-by: Ryan Wilson &lt;wryan@nicira.com&gt;
Acked-by: Ethan Jackson &lt;ethan@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Python's time.time() function uses the system wall clock. However,
if NTP resets the wall clock to be a time in the past, then this
causes any applications that poll block based on time, such as
ovs-xapi-sync, to poll block indefinitely since the time is
unexpectedly negative.

This patch fixes the issue by using time.monotonic() if Python's
version &gt;= 3.3. Otherwise, the timeval module calls out to the
librt C shared library and uses the clock_gettime function with
CLOCK_MONOTONIC.

Note this is only enabled on Linux-based platforms. This has been
tested on Ubuntu 12.04 and Redhat 6.4.

Bug #1189434
Signed-off-by: Ryan Wilson &lt;wryan@nicira.com&gt;
Acked-by: Ethan Jackson &lt;ethan@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vlog: Use python 2.4 compatible functions.</title>
<updated>2014-05-05T21:11:08+00:00</updated>
<author>
<name>Gurucharan Shetty</name>
<email>gshetty@nicira.com</email>
</author>
<published>2014-05-05T19:30:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=dde7b5cd2923bf49e64d1e3585c5a96eca1e0cf2'/>
<id>dde7b5cd2923bf49e64d1e3585c5a96eca1e0cf2</id>
<content type='text'>
Xenserver uses python 2.4.

Signed-off-by: Gurucharan Shetty &lt;gshetty@nicira.com&gt;
Acked-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Xenserver uses python 2.4.

Signed-off-by: Gurucharan Shetty &lt;gshetty@nicira.com&gt;
Acked-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Python Logging Formatting Improvements</title>
<updated>2014-04-28T16:09:04+00:00</updated>
<author>
<name>Dave Tucker</name>
<email>dave@dtucker.co.uk</email>
</author>
<published>2014-03-30T11:26:55+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=a5ed8fe32cb3c996837c61af2e358fa34dc9936f'/>
<id>a5ed8fe32cb3c996837c61af2e358fa34dc9936f</id>
<content type='text'>
The Open vSwitch daemons written in C support user-configured logging
patterns as described in ovs-appctl(8). This commit adds this capability
to the daemons written in Python.

- Add a '__log_patterns' attribute to the Vlog class
- Populate this using the default patterns in ovs-appctl(8)
- Add a '__start_time' attribute to the Vlog class to support '%r'
- Update the '_log' method to build the log message according to the
  pattern
- Add a 'set_pattern' method to allow the default patterns to be changed
- Update 'set_levels_from_string' to support setting the pattern from a
  string

Signed-off-by: Dave Tucker &lt;dave@dtucker.co.uk&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The Open vSwitch daemons written in C support user-configured logging
patterns as described in ovs-appctl(8). This commit adds this capability
to the daemons written in Python.

- Add a '__log_patterns' attribute to the Vlog class
- Populate this using the default patterns in ovs-appctl(8)
- Add a '__start_time' attribute to the Vlog class to support '%r'
- Update the '_log' method to build the log message according to the
  pattern
- Add a 'set_pattern' method to allow the default patterns to be changed
- Update 'set_levels_from_string' to support setting the pattern from a
  string

Signed-off-by: Dave Tucker &lt;dave@dtucker.co.uk&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ovsdb: Remove SPECS in favor of referring to RFC 7047.</title>
<updated>2014-04-04T20:51:32+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@nicira.com</email>
</author>
<published>2014-04-04T16:43:54+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=c70a77673cfc9e70d4e7e1633bdfa461fbd154f3'/>
<id>c70a77673cfc9e70d4e7e1633bdfa461fbd154f3</id>
<content type='text'>
Also, add some clarifications relative to RFC 7047 to ovsdb-server(1).

Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
Acked-by: Justin Pettit &lt;jpettit@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also, add some clarifications relative to RFC 7047 to ovsdb-server(1).

Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
Acked-by: Justin Pettit &lt;jpettit@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>socket-util: Fix set_dscp for IPv6</title>
<updated>2014-02-26T16:18:03+00:00</updated>
<author>
<name>YAMAMOTO Takashi</name>
<email>yamamoto@valinux.co.jp</email>
</author>
<published>2014-02-24T02:46:59+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=92ae5930c220d5994b691346526bde548ea97765'/>
<id>92ae5930c220d5994b691346526bde548ea97765</id>
<content type='text'>
Try IPPROTO_IPV6/IPV6_TCLASS socket option as well as IPPROTO_IP/IP_TOS
so that this can work for IPv6 sockets.

IPPROTO_IP/IP_TOS socket option is, as it's SOL indicates, for IPv4.
What happens when it's used for IPv6 sockets?  On Linux, it seems to
be forwarded to IPv4 code and affects IPv4 part of the socket.
(e.g. non-V6ONLY case)  But it doesn't seem to be the intention of
this function.  On other platforms including NetBSD, it just fails
with ENOPROTOOPT.

Probably this function should take the address family but passing
it around lib/*stream*.c would be a bigger change.

Cc: Arun Sharma &lt;arun.sharma@calsoftinc.com&gt;
Signed-off-by: YAMAMOTO Takashi &lt;yamamoto@valinux.co.jp&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Try IPPROTO_IPV6/IPV6_TCLASS socket option as well as IPPROTO_IP/IP_TOS
so that this can work for IPv6 sockets.

IPPROTO_IP/IP_TOS socket option is, as it's SOL indicates, for IPv4.
What happens when it's used for IPv6 sockets?  On Linux, it seems to
be forwarded to IPv4 code and affects IPv4 part of the socket.
(e.g. non-V6ONLY case)  But it doesn't seem to be the intention of
this function.  On other platforms including NetBSD, it just fails
with ENOPROTOOPT.

Probably this function should take the address family but passing
it around lib/*stream*.c would be a bigger change.

Cc: Arun Sharma &lt;arun.sharma@calsoftinc.com&gt;
Signed-off-by: YAMAMOTO Takashi &lt;yamamoto@valinux.co.jp&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add IPv6 support for OpenFlow, OVSDB, NetFlow, and sFlow.</title>
<updated>2014-02-07T00:08:34+00:00</updated>
<author>
<name>Arun Sharma</name>
<email>arun.sharma@calsoftinc.com</email>
</author>
<published>2014-02-07T00:04:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=e731d71bf47b8370e4bfa87827113eedd20b7398'/>
<id>e731d71bf47b8370e4bfa87827113eedd20b7398</id>
<content type='text'>
Does not add IPv6 support for in-band control.

Co-authored-by: Ben Pfaff &lt;blp@nicira.com&gt;
Signed-off-by: Nandan Nivgune &lt;nandan.nivgune@calsoftinc.com&gt;
Signed-off-by: Abhijit Bhopatkar &lt;abhijit.bhopatkar@calsoftinc.com&gt;
Signed-off-by: Arun Sharma &lt;arun.sharma@calsoftinc.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Does not add IPv6 support for in-band control.

Co-authored-by: Ben Pfaff &lt;blp@nicira.com&gt;
Signed-off-by: Nandan Nivgune &lt;nandan.nivgune@calsoftinc.com&gt;
Signed-off-by: Abhijit Bhopatkar &lt;abhijit.bhopatkar@calsoftinc.com&gt;
Signed-off-by: Arun Sharma &lt;arun.sharma@calsoftinc.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>daemon: Cleanup some functions.</title>
<updated>2014-01-24T16:32:23+00:00</updated>
<author>
<name>Gurucharan Shetty</name>
<email>gshetty@nicira.com</email>
</author>
<published>2014-01-10T16:33:15+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=d6056bc7ce15e7b4d1950fda5ad0ee4df7d6a04b'/>
<id>d6056bc7ce15e7b4d1950fda5ad0ee4df7d6a04b</id>
<content type='text'>
Some functions are unused and some functions can be
declared as static.

Signed-off-by: Gurucharan Shetty &lt;gshetty@nicira.com&gt;
Acked-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some functions are unused and some functions can be
declared as static.

Signed-off-by: Gurucharan Shetty &lt;gshetty@nicira.com&gt;
Acked-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
