Coder Social home page Coder Social logo

teemip / teemip-cable-mgmt Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 438 KB

Documents physical connections between devices in TeemIP

License: GNU General Public License v3.0

PHP 96.78% CSS 0.03% Twig 3.19%
teemip itop-extension cable-management

teemip-cable-mgmt's People

Contributors

xtophe38 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

rudnerbjoern

teemip-cable-mgmt's Issues

Extension missing from iTop Hub

I notice that this extension, which seems highly useful, is not available to install through the iTop Hub. I can install it by hand, of course, but I really prefer not to mix manual and Hub-installed extensions on the same instance.
Any chance of getting this packaged up and deployable through the Hub?

Enable `PatchPanel` to be visible in Racks/Enclosures graphical view

Hi Christophe,

First of all, thanks for this great extension and for making a bridge module to Datacenter View Extended! ๐Ÿ™Œ

Symptom

I've got feedback from some users of both extensions reporting that PatchPanel objects were not displayed in Racks/Enclosures graphical view by default.

Cause

Although the necessary DM attributes and methods are presents on the PatchPanel class, it is not enabled in the custom_device_classes module parameter (see here)

Workaround

They can add the class to the module parameter manually.

Example

'molkobain-datacenter-view-extended' => array (
    'custom_device_classes' => ['PatchPanel'],
),

Solution

I was about to make a PR for this, but then the way to actually do it wasn't that obvious and I would like to know how you would prefer it to be done.

Option 1

Convert module parameters of DVE to XML module parameters

Pros

  • You could add PatchPanel as an XML delta.

Cons

  • Doesn't seem like a good idea as the param. is already written in the conf. file of all users.
  • Would not work for any user who already overloaded the param. in their conf. file.

Option 2

Use the \ModuleInstallerAPI::BeforeWritingConfig(Config $oConfiguration) API to add the value to the existing values.

Pros

  • Would work for everybody, including those using existing version of DVE

Cons

  • We don't have the version numbers of the module being installed, therefore we can't alter the parameter only once, it will be done at each setup, which can be an issue (?) or at least isn't very clean. But, it is done by Combdo here ๐Ÿ˜

Option 3

Use the \ModuleInstallerAPI::BeforeDatabaseCreation(Config $oConfiguration, $sPreviousVersion, $sCurrentVersion) API to add the value to the existing values.

Pros

  • Would work for everybody, including those using existing version of DVE
  • Could be done only once when installing the new module version

Cons

  • That API is not made for this, not sure it would work in the future. Plus, it never feels good to "hack" an API for something out of its scope.

Questions

  • Which option suits you the best? Or do you have a better option?
  • Would you consider a PR for this?

Take care,
Guillaume

Feature Request - Create cable class to connect physical interface to physical interface

I love the extension and appreciate all the hard work into developing it. I am currently limited with the ability to track and view relations of connections from physical interfaces to other physical interfaces.

For example, I have managed switches that connect directly to endpoints or servers with Ethernet cables and would love to be able to see these assets when viewing the "Wiring" relations.

I have set the Physical Interface wiring properties on both sides to document the connection, but this does not populate in the relations view.

Server X Physical Interface Port 0
Network socket: <blank>
Remote device: Office Access Switch
Remote physical interface: Office Access Switch GigabitEthernet0/9

Office Access Switch Physical Interface GigabitEthernet0/9
Network socket: <blank>
Remote device: Server X
Remote physical interface: Server X Port 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.