Cannot import Service with IP address and parent object #11308

Closed
opened 2025-12-29 21:43:23 +01:00 by adam · 2 comments
Owner

Originally created by @apollo13 on GitHub (Jun 23, 2025).

Originally assigned to: @jnovinger on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.3.2

Python Version

3.12

Steps to Reproduce

  • Create and fhrpgroup named "WAN"
  • Import the following service:
name,protocol,ports,parent_object_type,parent
test,tcp,443,ipam.fhrpgroup,WAN

this works fine. Now try to add ipaddresses:

name,protocol,ports,parent_object_type,parent,ipaddresses
test,tcp,443,ipam.fhrpgroup,WAN,1.2.3.4/27

This fails with:

<class 'AttributeError'>

'FHRPGroup' object has no attribute 'parent_object'

Python version: 3.12.3
NetBox version: 4.3.2-Docker-3.3.0
Plugins: None installed

Expected Behavior

The service should get created with the IP address

Observed Behavior

An AttributeError is raised.

Originally created by @apollo13 on GitHub (Jun 23, 2025). Originally assigned to: @jnovinger on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.3.2 ### Python Version 3.12 ### Steps to Reproduce * Create and fhrpgroup named "WAN" * Import the following service: ``` name,protocol,ports,parent_object_type,parent test,tcp,443,ipam.fhrpgroup,WAN ``` this works fine. Now try to add ipaddresses: ``` name,protocol,ports,parent_object_type,parent,ipaddresses test,tcp,443,ipam.fhrpgroup,WAN,1.2.3.4/27 ``` This fails with: ``` <class 'AttributeError'> 'FHRPGroup' object has no attribute 'parent_object' Python version: 3.12.3 NetBox version: 4.3.2-Docker-3.3.0 Plugins: None installed ``` ### Expected Behavior The service should get created with the IP address ### Observed Behavior An AttributeError is raised.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:43:23 +01:00
adam closed this issue 2025-12-29 21:43:24 +01:00
Author
Owner

@jnovinger commented on GitHub (Jun 23, 2025):

@apollo13 , do you know if this behavior changed recently?

@jnovinger commented on GitHub (Jun 23, 2025): @apollo13 , do you know if this behavior changed recently?
Author
Owner

@apollo13 commented on GitHub (Jun 23, 2025):

No idea, we just started using imports. Sorry :/

On Mon, Jun 23, 2025, at 15:32, Jason Novinger wrote:

jnovinger left a comment (netbox-community/netbox#19745)
https://github.com/netbox-community/netbox/issues/19745#issuecomment-2996519517
@apollo13 https://github.com/apollo13 , do you know if this behavior
changed recently?


Reply to this email directly, view it on GitHub
https://github.com/netbox-community/netbox/issues/19745#issuecomment-2996519517,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAT5C4LCWWULJRMIHHLZBT3E76WFAVCNFSM6AAAAAB74WFOOKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSOJWGUYTSNJRG4.
You are receiving this because you were mentioned.Message ID:
@.***>

@apollo13 commented on GitHub (Jun 23, 2025): No idea, we just started using imports. Sorry :/ On Mon, Jun 23, 2025, at 15:32, Jason Novinger wrote: > *jnovinger* left a comment (netbox-community/netbox#19745) > <https://github.com/netbox-community/netbox/issues/19745#issuecomment-2996519517> > @apollo13 <https://github.com/apollo13> , do you know if this behavior > changed recently? > > — > Reply to this email directly, view it on GitHub > <https://github.com/netbox-community/netbox/issues/19745#issuecomment-2996519517>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAAT5C4LCWWULJRMIHHLZBT3E76WFAVCNFSM6AAAAAB74WFOOKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSOJWGUYTSNJRG4>. > You are receiving this because you were mentioned.Message ID: > ***@***.***>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11308