Skip to content

Add nic_group handling for VIP networks#2658

Open
neddp wants to merge 1 commit intomainfrom
add_nic_group_handling_for_vip_network
Open

Add nic_group handling for VIP networks#2658
neddp wants to merge 1 commit intomainfrom
add_nic_group_handling_for_vip_network

Conversation

@neddp
Copy link
Member

@neddp neddp commented Jan 30, 2026

What is this change about?

This PR adds nic_group support for VIP networks in the BOSH Director, enabling operators to specify which network interface should receive an Elastic IP when deploying instances with multiple NICs.

When a VIP network includes a nic_group property, the Director now passes this information to the CPI in the network settings, allowing the CPI to associate the Elastic IP with the correct network interface.

Please provide contextual information.

This change works in conjunction with the AWS CPI PR that implements the nic_group to device_index mapping logic.

Changes:

  • Modified VipNetwork#network_settings to include nic_group when specified
  • nic_group is converted to string format for CPI consumption
  • Maintains backward compatibility: omits nic_group when not specified

What tests have you run against this PR?

  • BOSH Director unit tests
  • Added 4 new unit tests

How should this change be described in bosh release notes?

VIP networks now support the nic_group property in deployment manifests. When specified, the Director passes this value to the CPI to control which network interface receives an Elastic IP in multi-NIC configurations.

Does this PR introduce a breaking change?

No. This change is backward compatible. When nic_group is not specified on a VIP network, the property is omitted from the network settings sent to the CPI, maintaining existing behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Pending Review | Discussion

Development

Successfully merging this pull request may close these issues.

1 participant