netbox-community / netbox-bgp

NetBox plugin for BGP related objects documentation
Apache License 2.0
251 stars 52 forks source link

Unable to assign BGP models to custom fields #212

Open mraerino opened 1 month ago

mraerino commented 1 month ago

NetBox version

4.0.9 with BGP plugin 0.13.2

Describe the bug

When creating a new custom field via the Netbox UI it's not possible to select any of the BGP models for assignment.

To Reproduce Steps to reproduce the behavior:

  1. Go to /extras/custom-fields/add/ on your Netbox install
  2. Try selecting a BGP plugin model from the Object types dropdown
  3. See that none of the BGP models can be selected

Expected behavior

I expect to be able to assign custom fields to some of the BGP models, mostly sessions where the custom fields are documented in the API.

Screenshots

n/a

Additional context

n/a

pl0xym0r commented 1 month ago

I'm not able to reproduce your issue, would you mind to share further information ? image image

cruse1977 commented 1 month ago

I'm also not able to replicate this. I'm removing the label bug for now pending further information from @mraerino mraerino

mraerino commented 1 month ago

ok, this does indeed not happen on a fresh install, only on our existing install that has existed for many netbox versions

i wonder if there is some dirty database state causing this. it's very strange.

rvtipper commented 1 week ago

I have this problem too but it is inconsistent as @mraerino mentions.

Netbox: 4.0.11 Netbox BGP: 0.13.3

My local fresh-ish instance running these versions (with prod database imported) I don't experience this at all. I can make custom fields on the BGP plugin without any problem. However in our production and test environments I experience this problem as described - the BGP plugin objects are not searchable. For a workaround I could create the custom field using API without any issue.

cruse1977 commented 1 week ago

I've set this to pending close (as is the primary issue) as there's no easy way to replicate it - it would literally need a copy of databases to see why this occurs - its something database related.

cruse1977 commented 1 day ago

hi @mraerino and @rvtipper - could you please provide the PLUGINS=[] line from your configuration please when this is occurring ? - this is not a netbox-bgp issue but we have a potential candidate but I'll need this information to ascertain if this mirrors the occurrence I'm aware of