Skip to content

Commit d9b4069

Browse files
authoredMar 28, 2025
Merge pull request #112 from netboxlabs/docs/custom_plugin_upgrade_clarifications
custom plugin clarification for NBE upgrades
2 parents 626397b + 412cda5 commit d9b4069

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed
 

Diff for: ‎docs/netbox-enterprise/nbe-ec-custom-plugins.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ To do so, you will need to create a tarball containing the plugins you wish to i
66

77
!!! note
88
On each startup, the wheelhouse's contents will be applied to a fresh NetBox Python environment.
9-
Also, you will need to create a new wheelhouse archive when the NetBox version provided in the NetBox Enterprise environment changes.
109

1110
## Create a working directory
1211

@@ -36,6 +35,7 @@ NBE_SOURCE_POD="$( \
3635
kubectl get pods -A \
3736
-o go-template='{{ range .items }}{{ .metadata.name }}{{ "\n" }}{{ end }}' \
3837
-l com.netboxlabs.netbox-enterprise/custom-plugins-upload=true \
38+
--field-selector status.phase=Running \
3939
| head -n 1 \
4040
)"
4141
@@ -87,6 +87,7 @@ NBE_SOURCE_POD="$( \
8787
kubectl get pods -A \
8888
-o go-template='{{ range .items }}{{ .metadata.name }}{{ "\n" }}{{ end }}' \
8989
-l com.netboxlabs.netbox-enterprise/custom-plugins-upload=true \
90+
--field-selector status.phase=Running \
9091
| head -n 1 \
9192
)"
9293
@@ -107,3 +108,14 @@ The next time the NetBox pods restart, your changes should be automatically appl
107108

108109
If you are in restore mode, switching out of restore mode will enable installation of your plugins.
109110
If you are not, a "redeploy" in the admin console will trigger the same.
111+
112+
# Migrations and Upgrades
113+
114+
When upgrading to a new NetBox Enterprise version which includes a different version of NetBox, you will likely need to generate a new wheelhouse file that matches its changed dependencies.
115+
116+
To do so, you should perform the following steps:
117+
118+
1. Put NetBox Enterprise into "restore mode" in the Admin Console configuration, and deploy the config change.
119+
2. Deploy the new NetBox Enterprise version.
120+
3. Follow the instructions above to download the new `constraints.txt` file and then generate and upload a new wheelhouse tarball.
121+
4. Uncheck "restore mode" and deploy.

0 commit comments

Comments
 (0)