Skip to content

ND_Manage_Networks: Support Empty Network Attachment Interfaces and PVLAN Secondary Networks - #458

Open
AKDRG wants to merge 6 commits into
CiscoDevNet:developfrom
AKDRG:nd_network_empty_interfaces
Open

ND_Manage_Networks: Support Empty Network Attachment Interfaces and PVLAN Secondary Networks#458
AKDRG wants to merge 6 commits into
CiscoDevNet:developfrom
AKDRG:nd_network_empty_interfaces

Conversation

@AKDRG

@AKDRG AKDRG commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Related Issue(s)

#489

Proposed Changes

  • Allow nd_manage_networks attachments to omit attach[].interfaces; missing interfaces now default to an empty list.
  • Preserve empty interface payloads so Network attachments can be applied without explicit interface selection.
  • Add playbook-facing PVLAN Network support for:
    • vlan_network_type: private_primary
    • vlan_network_type: private_secondary_community
    • primary_network_id for secondary community Networks
  • Limit the public PVLAN contract to tested/supported values: normal, private_primary, and private_secondary_community.
  • Ensure PVLAN secondary Network payloads are L2-only and do not emit l3Data.
  • Preserve primaryNetworkId in standalone and MCFG oneManage Network payload flows.
  • Avoid injecting contextual L3 defaults from argspec into sparse/PVLAN Network configs.

Test Notes

  • Ran focused unit tests:
    • PYENV_VERSION=ndfclab PYTHONPATH=$PWD/collections python -m pytest -q tests/unit/module_utils/orchestrators/test_networks.py
    • Result: 84 passed
  • Ran formatting:
    • black -l 159
  • Live tested on Fabric:
    • private_primary Network create succeeded.
    • private_secondary_community Network create succeeded with primary_network_id.
    • Secondary community Network merged update, replaced, explicit delete, and cleanup succeeded.

Cisco Nexus Dashboard Version

Cisco Nexus Dashboard 4.2.1

Related ND API Resource Category

  • analyze
  • infa
  • manage
  • onemanage
  • other

Checklist

  • Latest commit is rebased from develop with merge conflicts resolved
  • New or updates to documentation has been made accordingly
  • Assigned the proper reviewers

@AKDRG AKDRG changed the title Nd network empty interfaces ND_Manage_Networks: Support Empty Network Attachment Interfaces and PVLAN Secondary Networks Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants