{"id":46064096,"url":"https://github.com/marcinpsk/netbox-interfacenamerules-plugin","last_synced_at":"2026-03-01T12:01:04.673Z","repository":{"id":339484641,"uuid":"1162109641","full_name":"marcinpsk/netbox-InterfaceNameRules-plugin","owner":"marcinpsk","description":"Automatic interface renaming when modules are installed into NetBox device bays.","archived":false,"fork":false,"pushed_at":"2026-02-26T23:07:01.000Z","size":5636,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-27T04:46:15.434Z","etag":null,"topics":["netbox","netbox-automation","netbox-plugin"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcinpsk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-19T22:03:56.000Z","updated_at":"2026-02-24T20:36:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/marcinpsk/netbox-InterfaceNameRules-plugin","commit_stats":null,"previous_names":["marcinpsk/netbox-interfacenamerules-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marcinpsk/netbox-InterfaceNameRules-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcinpsk%2Fnetbox-InterfaceNameRules-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcinpsk%2Fnetbox-InterfaceNameRules-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcinpsk%2Fnetbox-InterfaceNameRules-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcinpsk%2Fnetbox-InterfaceNameRules-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcinpsk","download_url":"https://codeload.github.com/marcinpsk/netbox-InterfaceNameRules-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcinpsk%2Fnetbox-InterfaceNameRules-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29969243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T11:43:06.159Z","status":"ssl_error","status_checked_at":"2026-03-01T11:43:03.887Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["netbox","netbox-automation","netbox-plugin"],"created_at":"2026-03-01T12:00:52.798Z","updated_at":"2026-03-01T12:01:04.653Z","avatar_url":"https://github.com/marcinpsk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NetBox Interface Name Rules Plugin\n\n[![PyPI](https://img.shields.io/pypi/v/netbox-interface-name-rules)](https://pypi.org/project/netbox-interface-name-rules/)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/netbox-interface-name-rules)](https://pypi.org/project/netbox-interface-name-rules/)\n[![CI](https://img.shields.io/github/actions/workflow/status/marcinpsk/netbox-InterfaceNameRules-plugin/test.yaml?branch=main\u0026label=tests)](https://github.com/marcinpsk/netbox-InterfaceNameRules-plugin/actions/workflows/test.yaml)\n[![Coverage](https://img.shields.io/endpoint?url=https://marcinpsk.github.io/netbox-InterfaceNameRules-plugin/coverage/badge.json)](https://marcinpsk.github.io/netbox-InterfaceNameRules-plugin/coverage/)\n[![License](https://img.shields.io/github/license/marcinpsk/netbox-InterfaceNameRules-plugin)](LICENSE)\n[![Python](https://img.shields.io/pypi/pyversions/netbox-interface-name-rules)](https://pypi.org/project/netbox-interface-name-rules/)\n[![NetBox](https://img.shields.io/badge/NetBox-%E2%89%A54.2.0-blue)](https://github.com/netbox-community/netbox)\n[![Contributors](https://img.shields.io/github/contributors/marcinpsk/netbox-InterfaceNameRules-plugin)](https://github.com/marcinpsk/netbox-InterfaceNameRules-plugin/graphs/contributors)\n\nAutomatic interface renaming when modules are installed into NetBox device bays.\n\n## What it does\n\nWhen a module (transceiver, line card, converter) is installed into a module bay,\nNetBox creates interfaces using position-based naming from the module type template.\nThis often produces incorrect names — e.g., `Interface 1` instead of `et-0/0/4`.\n\nThis plugin hooks into Django's `post_save` signal on the `Module` model to\nautomatically apply renaming rules based on configurable templates.\n\n## Features\n\n- **Signal-driven** — rules fire automatically on module install, no manual step needed\n- **Template variables** — `{slot}`, `{bay_position}`, `{bay_position_num}`, `{base}`, `{channel}`, etc.\n- **Arithmetic expressions** — `{8 + ({parent_bay_position} - 1) * 2 + {sfp_slot}}`\n- **Breakout support** — create multiple channel interfaces from a single port (e.g., QSFP+ 4x10G)\n- **Scoping** — rules can be scoped to specific device types, parent module types, or be universal\n- **Bulk import/export** — YAML-based rule management via the UI or API\n\n## Supported scenarios\n\n| Scenario | Example |\n|----------|---------|\n| Converter offset | GLC-T in CVR-X2-SFP → `GigabitEthernet3/10` |\n| Breakout channels | QSFP-4X10G-LR → `et-0/0/4:0` through `et-0/0/4:3` |\n| Platform naming | QSFP-100G-LR4 on ACX7024 → `et-0/0/{bay_position}` |\n| UfiSpace breakout | QSFP-100G on S9610 → `swp{bay_position_num}s{channel}` |\n\n## Installation\n\n```bash\npip install netbox-interface-name-rules\n```\n\nAdd to `configuration.py`:\n```python\nPLUGINS = ['netbox_interface_name_rules']\n```\n\n## Compatibility\n\n- NetBox ≥ 4.2.0\n- Python ≥ 3.12\n\n## License\n\nApache 2.0\n\n## Documentation\n\n- [Full documentation](https://marcinpsk.github.io/netbox-InterfaceNameRules-plugin/) — installation, configuration, examples\n- [DeepWiki](https://deepwiki.com/marcinpsk/netbox-InterfaceNameRules-plugin) — AI-generated codebase overview\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for how to submit code or interface name rules.\n\nCommunity-contributed rules for various vendors are in the [`contrib/`](contrib/) directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcinpsk%2Fnetbox-interfacenamerules-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcinpsk%2Fnetbox-interfacenamerules-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcinpsk%2Fnetbox-interfacenamerules-plugin/lists"}