Skip to content

Cannot import Service with IP address and parent object #19745

Closed
@apollo13

Description

@apollo13

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.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions