Closed marmack95 closed 6 months ago
The documentation is not correct. I found the solution by adding the name of the require class as someone do it here: https://github.com/ytti/oxidized/issues/2579.
require 'oxidized/model/comware.rb'
class CustomHP < Comware
...
It's works now.
Document is extending an existing class, you are creating a new class, subclassing existing class. These are two different things. This is technically not oxidized question at all, but rather ruby question.
Usually all model classes are subclasses of Oxidized::Model, this is why custom methods like cmd
work. If we don't subclass existing class, and we define entirely new class, of course there will be no Oxidized specific methods available.
Hello, i'm trying to extend a model, but it does not work.
That's the result:
If i compare with documentation: https://github.com/ytti/oxidized/blob/master/docs/Creating-Models.md or this issue: https://github.com/ytti/oxidized/issues/3017 All seems ok, but it does not work.
I use docker version (tested with the last version and version 0.29.1 of april 2023)