Skip to content

Roles and filters #18

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
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

RobertBergman
Copy link

Pull Request: Introduce roles-and-filters Branch

Purpose:

This pull request establishes the roles-and-filters branch. This branch will serve as the development environment for implementing new features and enhancements related to device roles and filtering capabilities within the NetBox MCP server.

Current State:

  • This branch has been newly created and pushed from the [original-base-branch-name] branch (or main/master if that was the base).
  • No functional code changes have been introduced in this initial commit.

Planned Work:

The following features/enhancements are planned for development on this branch:

  • [Placeholder for specific feature 1 related to roles/filters]
  • [Placeholder for specific feature 2 related to roles/filters]
  • [Placeholder for any other related tasks]

Next Steps:

  • Development of the aforementioned features will commence on this branch.
  • Further commits will detail the specific changes implemented.

This PR is foundational and sets the stage for the upcoming work on roles and filtering.

The 'get' method in NetBoxRestClient now correctly handles paginated
responses from the NetBox API. It iterates through all available pages
to retrieve the complete set of results for list endpoints.

A plan for this implementation has also been added as
netbox_pagination_plan.md.
Added a standard Python .gitignore file to exclude common temporary,
cache, and environment-specific files from version control.
This commit introduces several enhancements:

- **server.py:**
  -  now features an intelligent brief mode.
    It resolves user-friendly filter references (e.g., )
    to API-compatible IDs and returns a summarized object including
    essential fields and context from resolved/passthrough filters.
    Device objects get additional fields like manufacturer, model,
    serial, and site name. OS type is inferred for some common models.
  -  now also supports a  parameter,
    using simple field stripping for its summarized output.
  - Server initialization now allows SSL verification to be configured
    via the  environment variable.
  - Added , , and  imports.
  - Updated  and added
    for filter resolution logic.

- **pyproject.toml:** (Assumed changes to support new dependencies or project settings)
- **netbox_brief_mode_plan.md:** Added planning document for the brief mode feature.
- **uv.lock:** Updated lock file.
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

Successfully merging this pull request may close these issues.

2 participants