diff --git a/pkg/awsutils/awsutils.go b/pkg/awsutils/awsutils.go index 33229825712..1e2d764347b 100644 --- a/pkg/awsutils/awsutils.go +++ b/pkg/awsutils/awsutils.go @@ -281,8 +281,7 @@ type NetworkCard struct { // max number of interfaces supported per card MaximumNetworkInterfaces int64 // the index of current card - NetworkCardIndex int64 - NetworkPerformance string + NetworkCardIndex int64 } // InstanceTypeLimits keeps track of limits for an instance type @@ -1431,7 +1430,6 @@ func (cache *EC2InstanceMetadataCache) FetchInstanceTypeLimits() error { networkCards[idx] = NetworkCard{ MaximumNetworkInterfaces: *info.NetworkInfo.NetworkCards[idx].MaximumNetworkInterfaces, NetworkCardIndex: *info.NetworkInfo.NetworkCards[idx].NetworkCardIndex, - NetworkPerformance: *info.NetworkInfo.NetworkCards[idx].NetworkPerformance, } } //Not checking for empty hypervisorType since have seen certain instances not getting this filled. diff --git a/scripts/gen_vpc_ip_limits.go b/scripts/gen_vpc_ip_limits.go index f2e5c444928..0789c82d7fd 100644 --- a/scripts/gen_vpc_ip_limits.go +++ b/scripts/gen_vpc_ip_limits.go @@ -168,7 +168,6 @@ func describeInstanceTypes(region string, eniLimitMap map[string]awsutils.Instan networkCards[idx] = awsutils.NetworkCard{ MaximumNetworkInterfaces: *info.NetworkInfo.NetworkCards[idx].MaximumNetworkInterfaces, NetworkCardIndex: *info.NetworkInfo.NetworkCards[idx].NetworkCardIndex, - NetworkPerformance: *info.NetworkInfo.NetworkCards[idx].NetworkPerformance, } } if instanceType != "" && eniLimit > 0 && ipv4Limit > 0 {