Skip to content

Primary IP is Required Even When Not Used in Client Environment #428

@housepbass

Description

@housepbass

Environment

  • Python version: 3.11
  • Nautobot version: 2.4.18
  • nautobot-device-onboarding version: 4.3.1
  • ntc-templates version: latest

Expected Behavior

We aren't able to set primary IP attributes on Nautobot Devices - we rely exclusively on Device name which is the FQDN. This enables us to keep a simple ssh config using a jump server.

I expect to be able to run sync_network job without Devices requiring Primary IP to be set.

Observed Behavior

The _cache_primary_ips and sync_complete methods assume all Devices have Primary IP set. When a Device doesn't have a Primary IP set, it trips over these methods erroneously.

Steps to Reproduce

  1. Run sync network data job against device without primary IP set
  2. Observe logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions