Re: [openstack-dev] [all][monasca] pysnmp autogenerated code

2018-05-11 Thread Stefano Canepa
On 11 May 2018 at 08:26, Ilya Etingof wrote: > On 05/10/2018 05:01 PM, Stefano Canepa wrote: > > > > On 10 May 2018 at 10:55, Ilya Etingof > > wrote: > > > > > > Hi Stefano, > > > > The best solution would be of course to fix pysmi code generator [1] > to > >

Re: [openstack-dev] [all][monasca] pysnmp autogenerated code

2018-05-11 Thread Ilya Etingof
On 05/10/2018 05:01 PM, Stefano Canepa wrote: > > On 10 May 2018 at 10:55, Ilya Etingof > wrote: > > > Hi Stefano, > > The best solution would be of course to fix pysmi code generator [1] to > behave. ;-) > > > ​This is something that pysmi author alre

Re: [openstack-dev] [all][monasca] pysnmp autogenerated code

2018-05-10 Thread Stefano Canepa
On 10 May 2018 at 10:55, Ilya Etingof wrote: > > Hi Stefano, > > The best solution would be of course to fix pysmi code generator [1] to > behave. ;-) > ​This is something that pysmi author already gives for granted in the Release notes. I bet you know this better then me ;-)​ > On the other

Re: [openstack-dev] [all][monasca] pysnmp autogenerated code

2018-05-10 Thread Ilya Etingof
Hi Stefano, The best solution would be of course to fix pysmi code generator [1] to behave. ;-) On the other hand, if you won't include the autogenerated code into your package, the code generation would happen just once at run time - the autogenerated module would get cached on the file system

[openstack-dev] [all][monasca] pysnmp autogenerated code

2018-05-10 Thread Stefano Canepa
All, I'm writing a notification plugin for monasca that forward alarms using SNMP. I'm using pysnmp and I'm transforming my MIB into python so it can be loaded faster in my code. The issue I have is that the utility from pysmi (pysnmp dependency) does not generate good pycodestyle code even if thi