Skip to content

Feature Request - Ability to set configs on a per-scoped device basis #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
brandan-schmitz opened this issue Apr 30, 2025 · 2 comments

Comments

@brandan-schmitz
Copy link

brandan-schmitz commented Apr 30, 2025

The ability to set things such as the role, or manually specify a device type would be a really useful feature. We would ideally like to be able to create a policy for each of our sites. Currently we have multiple device roles at the same site, and this would require us to create multiple policies per site and add the different devices to the scopes for a different policy.

Another thing that would be useful would be to override the type of device that is returned. For example, we have a 10gig Cisco 4948 switch, and the device type returned by the agent is Cisco WS-C4948-10GE. However it is more commonly known as a Cisco Catalyst 4948-10GE and when you import devices from the Netbox devicetype-library, it also creates it a the Cisco Catalyst 4948-10GE. In cases like this it would be nice to be able to override that type because if you simply modify it in Netbox, the next time the device is polled by the agent it is changed back.

A config such as this would be nice to be able to do:

orb:
  config_manager:
    active: local
  backends:
    device_discovery:
    common:
      diode:
        target: grpc://localhost.com:8080/diode
        client_id: ${DIODE_USERNAME}
        client_secret: ${DIODE_PASSWORD}
        agent_name: agent-01
  policies:
    device_discovery:
      office_1:
        config:
          schedule: "* * * * *"
          defaults:
            site: Office 1
            role: Switching
        scope:
          - driver: ios
            hostname: 192.168.206.66
            username: ${USERNAME}
            password: ${PASSWORD}
            optional_args:
              secret: ${ENABLE_PASSWORD}
          - driver: ios
            hostname: 192.168.206.67
            username: ${USERNAME}
            password: ${PASSWORD}
            optional_args:
              secret: ${ENABLE_PASSWORD}
          - driver: ios
            hostname: 192.168.206.68
            username: ${USERNAME}
            password: ${PASSWORD}
            optional_args:
              secret: ${ENABLE_PASSWORD}
            override_defaults:
              role: Video
@brandan-schmitz
Copy link
Author

Moving to proper repository.

@leoparente
Copy link
Contributor

This is the proper repo for this. so I will reopen it here @brandan-schmitz . Thanks for reporting it

@leoparente leoparente reopened this May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants