Giter Site home page Giter Site logo

split device names about oxidized HOT 6 CLOSED

andershagman avatar andershagman commented on June 29, 2024
split device names

from oxidized.

Comments (6)

robertcheramy avatar robertcheramy commented on June 29, 2024

I think you have to wrap the name in Netbox or in the script that gets the devicelist from netbox.
Oxidized jut uses the devicenames you give in the devicelist.

from oxidized.

andershagman avatar andershagman commented on June 29, 2024

I can not change the names in Netbox.
It is not a script. It´s built in in Oxidized with source http.

from oxidized.

robertcheramy avatar robertcheramy commented on June 29, 2024

This is a Netbox problem then. Netbox is the source of truth and has to pass the right DNS Name to oxidized.

from oxidized.

andershagman avatar andershagman commented on June 29, 2024

It is not a DNS name it is an inventory name.
Can I manipulate the file name instead?

from oxidized.

andershagman avatar andershagman commented on June 29, 2024

I see that you have split functions elsewhere in the code. So is it possible to define your own and refer to that in the config file?

example
var:
name: splitfunc(name)

from oxidized.

winterheart avatar winterheart commented on June 29, 2024

You can use Export Templates in Netbox, where you can customize names with Jinja2 templates. So in Netbox names will be unchanged and Oxidized will use split names in way what you want.
https://github.com/wrouesnel/docker.netbox/blob/master/netbox/src/netbox/docs/additional-features/export-templates.md

from oxidized.

Related Issues (20)

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.