GithubHelp home page GithubHelp logo

Add groups to Inventory about nornir-nautobot HOT 5 OPEN

nautobot avatar nautobot commented on July 19, 2024
Add groups to Inventory

from nornir-nautobot.

Comments (5)

jifox avatar jifox commented on July 19, 2024 1

@jvanderaa

Do you think the group names should get the "group_by" as a prefix?

options: {
  "group_by": ["tags", "sites"]
}

Group names for inventory:

tags_tag1, tags_tag2, sites_site1, sites_site2

from nornir-nautobot.

jvanderaa avatar jvanderaa commented on July 19, 2024

Yeah, that is exactly what I'm thinking of. My goal is to try to get the inventories between Ansible and Nornir to be as close as possible to each other within the projects @jifox. I think that the Ansible inventory has a bunch of terrific features that Nornir could benefit from.

from nornir-nautobot.

wvandeun avatar wvandeun commented on July 19, 2024

@jvanderaa I've done a similar implementation in nornir_netbox
https://github.com/wvandeun/nornir_netbox/blob/76d3d9b2da1190a11f302f28f19b6d1e49528932/nornir_netbox/plugins/inventory/netbox.py#L257-L280

Is this how you envisioned providing group support?

from nornir-nautobot.

jvanderaa avatar jvanderaa commented on July 19, 2024

The biggest vision was to try to line things up with the Ansible inventory that had a few extra options. But that is not a requirement by any means. I'll welcome what makes sense. What I was thinking of having a key in the inventory options of

{
    "group_by": [
        "site",
        "region",
        # ... and so on
        ]

With the various items.

from nornir-nautobot.

jvanderaa avatar jvanderaa commented on July 19, 2024

@wvandeun I'm good with the options that make sense to get some groups populating.

from nornir-nautobot.

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.