![]() |
![]() |
Subject: | Multiple Device Classes and Properties in zenpack.yaml? |
Author: | [Not Specified] |
Posted: | 2016-04-13 17:38 |
Can multiple devices classes be added in device_classes in the same zenpack.yaml file
For example, the documentation shows:
device_classes: /Server/ACME/Widgeter:
I'm wondering if I can do the following:
device_classes: /Server/ACME/Widgeter: /Server/WXYZ/Widgeter:
I tried something like this, but ended up getting no device classes, so I'm thinking the answer might be no, but perhaps I'm doing something wrong
Another question along the same line is what if I want to set some properties at /Server/ACME, and some other properpties at /Server/ACME/Widgeter. Can I do it like this
device_classes: /Server/ACME: templates: SomeTemplate: /Server/ACME/Widgeter: templates: SomeOtherTemplate:
If this works, will the device at /Server/ACME/Widgeter also inherit the SomeTemplate template specified at /Server/Acme
Thanks,
Kevin
Subject: | To answer my own question |
Author: | [Not Specified] |
Posted: | 2016-04-14 17:23 |
To answer my own question (the second one), it is possible to have/Server/ACME, and /Server/ACME/Widgeter defined in one zenpack.yaml. Thetemplates set at /Server/ACMEwon't be inherited though, unless you specify themat/Server/ACME/Widgeter.
Subject: | And to answer my first |
Author: | [Not Specified] |
Posted: | 2016-04-18 16:09 |
And to answer my first question, it seems that you have to specify more than just the following:
device_classes: /Server/ACME/Widgeter: /Server/WXYZ/Widgeter:
I triedthe following instead and then I got both device classes to show up:
device_classes: /Server/ACME/Widgeter: zProperties: zPythonClass: Device zCollectorPlugins: - somePlugins zDeviceTemplates: - Device /Server/WXYZ/Widgeter: zProperties: zPythonClass: Device zCollectorPlugins: - somePlugins zDeviceTemplates: - Device
< |
Previous Eaton ePDU Device |
Next Zenoss 4.2.5 - Problems adding into Menu |
> |