[ovs-dev] Patch: Add openvswitch-python package

Sajjad Lateef slateef at nicira.com
Mon Sep 20 22:00:59 UTC 2010


On Mon, Sep 20, 2010 at 2:58 PM, Ben Pfaff <blp at nicira.com> wrote:
> On Mon, Sep 20, 2010 at 02:24:35PM -0700, Sajjad Lateef wrote:
>
>> On my test system with openvswitch-python debian package installed:
>> ~# python
>> Python 2.5.2 (r252:60911, Jan 24 2010, 14:53:14)
>> [GCC 4.3.2] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import ovs.json
>> >>> dir(ovs.json)
>> ['Parser', 'StringIO', '__builtins__', '__doc__', '__dump_string',
>> '__file__', '__name__', 'escapes', 'from_file', 'from_stream',
>> 'from_string', 'i', 're', 'sys', 'to_file', 'to_stream', 'to_string']
>> >>> from ovs import daemon
>> >>> dir(daemon)
>> ['LONG_OPTIONS', '__builtins__', '__doc__', '__file__', '__name__',
>> '_already_running', '_chdir', '_close_standard_fds', '_daemonize_fd',
>> '_detach', '_fork_and_wait_for_startup', '_fork_notify_startup',
>> '_make_pidfile', '_monitor', '_monitor_daemon', '_overwrite_pidfile',
>> '_pidfile', '_should_restart', '_waitpid', 'daemonize',
>> 'daemonize_complete', 'daemonize_start', 'die_if_already_running',
>> 'errno', 'fcntl', 'get_detach', 'get_pidfile',
>> 'ignore_existing_pidfile', 'is_chdir_enabled', 'logging',
>> 'make_pidfile_name', 'os', 'ovs', 'parse_opt', 'read_pidfile',
>> 'resource', 'set_detach', 'set_monitor', 'set_no_chdir',
>> 'set_pidfile', 'signal', 'sys', 'time', 'usage']
>> >>>
>
> I don't know whether that's informational or pointing out a bug.  If the
> former, thanks.  If the latter, please be more specific: I don't know
> Python well enough to see it.
>

Informational only. Will send another patch shortly.

-- 
Sajjad Lateef
slateef at nicira.com




More information about the dev mailing list