Skip to content

Commit 3c63d2b

Browse files
committed
do not raise error in case more networks than network interface cards are applied
1 parent ac50c24 commit 3c63d2b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

platform/net/interface_configuration_creator.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,6 @@ func NewInterfaceConfigurationCreator(logger boshlog.Logger) InterfaceConfigurat
126126
}
127127

128128
func (creator interfaceConfigurationCreator) CreateInterfaceConfigurations(networks boshsettings.Networks, interfacesByMAC map[string]string) ([]StaticInterfaceConfiguration, []DHCPInterfaceConfiguration, error) {
129-
if !networks.HasInterfaceAlias() && len(interfacesByMAC) < len(networks) {
130-
return nil, nil, bosherr.Errorf("Number of network settings '%d' is greater than the number of network devices '%d'", len(networks), len(interfacesByMAC))
131-
}
132-
133129
// In cases where we only have one network and it has no MAC address (either because the IAAS doesn't give us one or
134130
// it's an old CPI), if we only have one interface, we should map them
135131
if len(networks) == 1 && len(interfacesByMAC) == 1 {

0 commit comments

Comments
 (0)