summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* propertycacher: make parent directoriesBrad Bishop2016-08-101-1/+4
| | | | | Change-Id: I4557ddab56f4cbea5b177e3b05ef28c367c6e602 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add parameter to Emergency signal of SensorThresholdsYi Li2016-07-291-3/+6
| | | | | | | | | | | | When sensor value is out of range of threshold, an "Emergency" signal will be emitted. Add a "message" parameter to the signal, to provide detail information on the cause of "Emergency". This information will be logged in an ESEL. Partially resolves openbmc/skeleton#64 Change-Id: I501188b36718b8a87582558c349c0316e1092db5 Signed-off-by: Yi Li <adamliyi@msn.com>
* Remove find_dbus_interfacesBrad Bishop2016-07-251-103/+0
| | | | | | | | | Waffling yet again on where this should be located. Move back to the mapper to discourage other applications from introspection and encourage use of the mapper. Change-Id: I78dc815baeb46d6b2d155d02318fba230d7420d2 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Remove mapper bindingsBrad Bishop2016-07-201-162/+0
| | | | | | | Move mapper bindings back to the phosphor-objmgr project. Change-Id: I9fd614bb74d7607da08a8ffb118ca41441b7b904 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Allow control of signal generationBrad Bishop2016-07-101-7/+37
| | | | | | | | | Typically ObjectManager signals should remain masked until a service has grabbed a well-known bus name to avoid pointless dbus signal generation. Change-Id: I26703ec7a8b946128fe5aa8ed1c830a2e8f23c21 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Improve short-lived object handlingBrad Bishop2016-06-281-8/+46
| | | | | | | | | Its expected that services will appear on the bus and may or may not be around log enough for introspection to take place. Catch those exceptions and continue. Change-Id: I77963d5af9d8267d1813bd2197ff287f06f7d2cd Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Remove unnecessary variableBrad Bishop2016-06-281-9/+9
| | | | | Change-Id: I64847ffa6a0078ce66c3117a51df0fd6188a0f8c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Remove name mangling from find_dbus_interfacesBrad Bishop2016-06-281-17/+17
| | | | | | | | | | | | | | | | Double underscore in Python mangles names and sometimes is used as a way to make things private; however, in general this isn't considered best practice and there isn't a compelling reason for it here. Rather, the convention for denoting a private interface is to use a single leading underscore. For more information: http://www.artima.com/weblogs/viewpost.jsp?thread=211430 Change-Id: Id42b0dc670dc1f90ed52f38ac98a82ff8214ee47 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add find_dbus_interfaces to introspection utilsBrad Bishop2016-06-281-2/+67
| | | | | | | This is a straight copy from phosphor-objmgr. Change-Id: I4792be46b755774af4a29cb1d603253738db3e4a Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add alias for org.freedesktop.DBus.Error.NoReplyBrad Bishop2016-06-281-0/+1
| | | | | Change-Id: If112ed9db5c7fb8935daf2245736e039209d0798 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Merge pull request #6 from bradbishop/enumeratePatrick Williams2016-06-221-21/+1
|\ | | | | Remove org.openbmc.Object.Enumerate interface
| * Remove org.openbmc.Object.Enumerate interfaceBrad Bishop2016-06-211-21/+1
|/ | | | | | Everyone should be using the freedesktop ObjectManager for this. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Merge pull request #5 from bradbishop/namePatrick Williams2016-06-131-5/+4
|\ | | | | Use standard DBUS naming conventions
| * Use standard DBUS naming conventionsBrad Bishop2016-06-061-5/+4
|/ | | | | | | | | | The existing service/iface/object path names were out-of-spec. busname: org.openbmc.ObjectMapper iface: org.openbmc.ObjectMapper path: /org/openbmc/ObjectMapper Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Merge pull request #4 from bradbishop/sensors-propertycacherPatrick Williams2016-06-062-0/+345
|\ | | | | Move sensors.py and propertycacher.py frm skeleton
| * Move sensors.py and propertycacher.py frm skeletonBrad Bishop2016-05-172-0/+345
| | | | | | | | | | | | | | | | These skeleton module are somewhat general purpose so move them here. This is just a straight copy plus a pep8 run. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* | Merge pull request #2 from bradbishop/set-multiple-bugPatrick Williams2016-06-061-1/+1
|\ \ | | | | | | Fix bug injected during skeleton port
| * | Fix bug injected during skeleton portBrad Bishop2016-05-161-1/+1
| |/ | | | | | | | | This library method originally came from the skeleton project. While running pep8 after porting it I injected a logic bug.
* | Merge pull request #3 from bradbishop/service-unknown-enumPatrick Williams2016-05-191-0/+1
|\ \ | |/ |/| Add enum for Freedesktop unknown service error
| * Add enum for Freedesktop unknown service errorBrad Bishop2016-05-161-0/+1
|/
* Merge pull request #1 from bradbishop/pullPatrick Williams2016-04-2913-0/+943
|\ | | | | Pull
| * Move common code from REST serverBrad Bishop2016-04-291-0/+120
| | | | | | | | | | Moving a bunch of code with common utility out of the rest server. No new functionality provided.
| * Added python to dts encoderBrad Bishop2016-04-291-0/+74
| | | | | | | | | | | | | | | | This is a rudimentary python to device tree encoder. It supports nested nodes and, cell, cell array, string, string array, and mixed array properties. At the moment there is no support for binary properties.
| * Add dictionary export to PathTreeBrad Bishop2016-04-151-0/+14
| | | | | | | | | | | | | | | | | | | | | | PathTree is a dictionary extension with paths as keys and lets you do things like iterate on subpaths, etc. Internally it is implemented as a nested dictionary but on the outside it acts like a normal dictionary. This change enables exporting a PathTree structure as a nested dictionary, which is useful for python_2_xyz encoders that understand nested data structures.
| * Introducing pyobmcBrad Bishop2016-04-1512-0/+735
|/ | | | | | | | | | We have openbmc python utilities scattered all over the place. To facilitate reuse, bring them together in a single python package. None of this is new code, it was all simply ported and re-arranged from other projects. Ran everything through pep8.
* Initial commitPatrick Williams2016-04-141-0/+201
OpenPOWER on IntegriCloud