{"id":39400330,"url":"https://github.com/sjm-steffann/netbox-reorder","last_synced_at":"2026-01-18T03:23:42.752Z","repository":{"id":57445609,"uuid":"276712867","full_name":"sjm-steffann/netbox-reorder","owner":"sjm-steffann","description":"NetBox Plugin to order interfaces more intuitively","archived":false,"fork":false,"pushed_at":"2020-12-14T20:51:57.000Z","size":16,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-28T18:07:20.594Z","etag":null,"topics":["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/sjm-steffann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-02T17:56:09.000Z","updated_at":"2025-09-11T09:01:38.000Z","dependencies_parsed_at":"2022-09-26T17:30:55.430Z","dependency_job_id":null,"html_url":"https://github.com/sjm-steffann/netbox-reorder","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sjm-steffann/netbox-reorder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjm-steffann%2Fnetbox-reorder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjm-steffann%2Fnetbox-reorder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjm-steffann%2Fnetbox-reorder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjm-steffann%2Fnetbox-reorder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjm-steffann","download_url":"https://codeload.github.com/sjm-steffann/netbox-reorder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjm-steffann%2Fnetbox-reorder/sbom","scorecard":{"id":828729,"data":{"date":"2025-08-11","repo":{"name":"github.com/sjm-steffann/netbox-reorder","commit":"b9a560ea2b8998eb129369372ad77dfdbb8beac5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/sjm-steffann/netbox-reorder/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/sjm-steffann/netbox-reorder/python-publish.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:25","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T17:09:45.429Z","repository_id":57445609,"created_at":"2025-08-23T17:09:45.429Z","updated_at":"2025-08-23T17:09:45.429Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28528038,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-plugin"],"created_at":"2026-01-18T03:23:42.625Z","updated_at":"2026-01-18T03:23:42.722Z","avatar_url":"https://github.com/sjm-steffann.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NetBox plugin to order interfaces more intuitively\n\n\u003e :warning: **This plugin hacks into NetBox**: This plugin definitely does not follow the supported plugin protocol, and can break NetBox!\n\n## Compatibility\n\nThis plugin in compatible with [NetBox](https://netbox.readthedocs.org/) 2.8. Because of the way this plugin hacks into the internals of NetBox compatibility with other versions is not guaranteed.\n\nNetBox 2.10 introduced breaking\nchanges that make it unusable for my own use cases, so I will not be providing support for it. There is work being done\nto create a fork of NetBox that is friendlier to both network operators and contributors. My future work will be in\nsupport of that.\n\n## Installation\n\nFirst, add `netbox_reorder` to your `/opt/netbox/local_requirements.txt` file. Create it if it doesn't exist.\n\nIf you are using a local version of the plugin, for example for development, add `-e /opt/path/to/plugin` instead.\n\nThen enable the plugin in `/opt/netbox/netbox/netbox/configuration.py`, like:\n\n```python\nPLUGINS = [\n    'netbox_reorder',\n]\n```\n\nAnd finally run `/opt/netbox/upgrade.sh`. This will download and install the plugin and update the database when necessary. Don't forget to run `sudo systemctl restart netbox netbox-rq` like `upgrade.sh` tells you!\n\n## Usage\n\nThis plugin overrides the default interface sorting algorithm of NetBox.\n\n### Ordering of mixed interface type names\n\nSome devices (for example Juniper switches) can have mixed interface type names. By default NetBox orders these as follows:\n\n- ge-0/0/1\n- ge-0/0/3\n- xe-0/0/0\n- xe-0/0/2\n- xe-0/0/4\n- ge-0/1/1\n- ge-0/1/3\n- xe-0/1/0\n- xe-0/1/2\n- xe-0/1/4\n\nThis is because the interface type (`ge` or `xe`) has precedence over the last part of the interface name. This makes sense when using certain Cisco equipment that has both FastEthernet and GigabitEthernet interfaces with the same numbers:\n\n- FastEthernet0/0\n- FastEthernet0/1\n- GigabitEthernet0/0\n- GigabitEthernet0/1\n\nNetBox has consciously chosen this sorting algorithm. This plugin implements an alternative more intuitive algorithm where the ordering will be:\n\n- xe-0/0/0\n- ge-0/0/1\n- xe-0/0/2\n- ge-0/0/3\n- xe-0/0/4\n- xe-0/1/0\n- ge-0/1/1\n- xe-0/1/2\n- ge-0/1/3\n- xe-0/1/4\n\nThe downside is that Cisco equipment with duplicate ports numbers will be less intuitive:\n\n- FastEthernet0/0\n- GigabitEthernet0/0\n- FastEthernet0/1\n- GigabitEthernet0/1\n\n### Ordering of virtual chassis interfaces\n\nNetBox orders interfaces first by device name and then by name. This can cause interfaces in a virtual chassis to appear in an unexpected order. Consider for example the following virtual chassis:\n\n| Device Name | Position | Interface names |\n|-------------|----------|-----------------|\n| one         | 1        | xe-1/x/y        |\n| two         | 2        | xe-2/x/y        |\n| three       | 3        | xe-3/x/y        |\n\nWhen viewing the virtual chassis the intuitive order of interfaces would be first `xe-1/x/y`, then `xe-2/x/y` and finally `xe-3/x/y`.\n\nHowever, because NetBox by default sorts first on device name, the order will be first `xe-1/x/y`, then `xe-3/x/y` and finally `xe-2/x/y`.\n\nWhy? Because \"three\" comes before \"two\" alphabetically.\n\nThis plugin patches NetBox to implement the intuitive order.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjm-steffann%2Fnetbox-reorder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjm-steffann%2Fnetbox-reorder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjm-steffann%2Fnetbox-reorder/lists"}