Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r/host_virtual_switch: Support a switch with no NICs #256

Merged
merged 1 commit into from
Nov 30, 2017

Conversation

vancluever
Copy link
Contributor

This is basically done in vSphere by supplying no bridge to the config
spec - in our configuration, we were passing the bridge with zero nics,
which is an invalid configuration.

This change just nils out the bridge after expansion if there are no
NICs. We have also added some diff-time validation to make sure that any
NIC specified in the active or standby list is a NIC configured on the
bridge to avoid errors at apply time.

Fixes #210.

This is basically done in vSphere by supplying no bridge to the config
spec - in our configuration, we were passing the bridge with zero nics,
which is an invalid configuration.

This change just nils out the bridge after expansion if there are no
NICs. We have also added some diff-time validation to make sure that any
NIC specified in the active or standby list is a NIC configured on the
bridge to avoid errors at apply time.
@vancluever vancluever added bug Type: Bug enhancement Type: Enhancement labels Nov 30, 2017
@vancluever vancluever requested a review from mbfrahry November 30, 2017 19:37
Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vancluever
Copy link
Contributor Author

Thanks @mbfrahry!

@vancluever vancluever merged commit 097d5d7 into master Nov 30, 2017
@vancluever vancluever deleted the b-host-vswitch-nonics branch December 5, 2017 13:42
@ghost ghost locked and limited conversation to collaborators Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Type: Bug enhancement Type: Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't create a standard virtual switch without any physical nic attached.
2 participants