Hi all,

I just pulled from the nicira tree and tried running my Python app. My 
Flow_in_event handler now breaks as I can't access the elements in 
event.flow.

With the following couple of debug prints:
        print event
        print event.__dict__
        print event.flow
        print event.flow.__dict__

I get:

<nox.apps.pyrt.pycomponent.pyevent; proxy of <Swig Object of type 
'pyevent *' at 0xafdfb4f0> >

{'buf': '\x00\x80HR\x98\xa7\x00!\\S\xc6\xe9\x00\x00',
'received': 1217984244L,
'dst_dl_authed': True,
'datapath_id': 58939760320L,
'wpoints': [[]],
'src': {'users': [(0L, [])], 'hostgroups': [], 'ap': 0L, 'host': 0L, 
'expire': 1217984544L, 'location': 281533916470976L, 'n_bindings': 1L},
'this': <Swig Object of type 'pyevent *' at 0xafdfb4f0>,
'dst_nw_authed': False,
'dst': [{'users': [(0L, [])], 'hostgroups': [], 'ap': 0L, 'host': 0L, 
'expire': 1217984544L, 'location': 281533916470976L, 'n_bindings': 1L}],
'src_nw_authed': False,
'flow': <nox.lib.netinet.netinet.Flow; proxy of <Swig Object of type 
'Flow *' at 0xb00d31e0> >,
'buffer_id': 17209L,
'total_len': 14L,
'internal_sloc': False,
'src_dl_authed': True}

<nox.lib.netinet.netinet.Flow; proxy of <Swig Object of type 'Flow *' at 
0xb00d31e0> >

{'this': <Swig Object of type 'Flow *' at 0xb00d31e0>}


As you can see, I can no longer access elements inside the flow object.

Glen

_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to