DanSheps / netbox-routing

A Netbox Routing plugin
Apache License 2.0
50 stars 6 forks source link

Conflict with other plugins 'netbox-bgp' #12

Closed firmansyahn closed 2 months ago

firmansyahn commented 1 year ago

Plugin version

v0.1.0

NetBox version

v3.6.3

Python version

3.9

Steps to Reproduce

  1. Install netbox-routing /opt/netbox/venv/bin/pip install -r local_requirements.txt
  2. Run migration /opt/netbox/venv/bin/python netbox/manage.py migrate

Expected Behavior

Installation completed without errors.

Observed Behavior

Migration halted, and raise errors.

SystemCheckError: System check identified some issues:

ERRORS:
netbox_bgp.PrefixList.tags: (fields.E304) Reverse accessor 'Tag.prefixlist_set' for 'netbox_bgp.PrefixList.tags' clashes with reverse accessor for 'netbox_routing.PrefixList.tags'.
        HINT: Add or change a related_name argument to the definition for 'netbox_bgp.PrefixList.tags' or 'netbox_routing.PrefixList.tags'.
netbox_routing.PrefixList.tags: (fields.E304) Reverse accessor 'Tag.prefixlist_set' for 'netbox_routing.PrefixList.tags' clashes with reverse accessor for 'netbox_bgp.PrefixList.tags'.
        HINT: Add or change a related_name argument to the definition for 'netbox_routing.PrefixList.tags' or 'netbox_bgp.PrefixList.tags'.
bkampsnl commented 11 months ago

I have the same problem.

DanSheps commented 11 months ago

You have netbox_bgp and netbox_routing both installed, they are not compatible together due to both using a PrefixList model.

bkampsnl commented 11 months ago

Yes I understand the problem. But can / will it be fixed?