Skip to content

Commit 627f075

Browse files
committed
Address comments
Signed-off-by: Wenqi Qiu <[email protected]>
1 parent 77cacc1 commit 627f075

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

build/yaml/samples/nsx_v1alpha1_vpcnetworkconfigurations.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@ kind: VPCNetworkConfiguration
33
metadata:
44
name: vpc-network-config1
55
spec:
6-
defaultGatewayPath: /infra/tier-0s/t0
7-
edgeClusterPath: /infra/sites/default/enforcement-points/default/edge-clusters/2d9df59f-6dc6-4911-8865-21fadc23d4da
86
defaultSubnetSize: 32
97
nsxProject: proj-1
10-
externalIPv4Blocks:
11-
- block1
128
privateIPs:
139
- 172.26.0.0/16
1410
- 172.36.0.0/16

pkg/controllers/networkinfo/vpcnetworkconfig_handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ var VPCNetworkConfigurationPredicate = predicate.Funcs{
101101
func buildNetworkConfigInfo(vpcConfigCR v1alpha1.VPCNetworkConfiguration) (*commontypes.VPCNetworkConfigInfo, error) {
102102
org, project, err := nsxtProjectPathToId(vpcConfigCR.Spec.NSXProject)
103103
if err != nil {
104-
log.Error(err, "failed to parse nsx-t project in network config", "Project Path", vpcConfigCR.Spec.NSXProject)
104+
log.Error(err, "failed to parse NSX project in network config", "Project Path", vpcConfigCR.Spec.NSXProject)
105105
return nil, err
106106
}
107107

pkg/nsx/services/vpc/compare.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
// currently we only support appending public/private cidrs
1010
// so only comparing list size is enough to identify if vcp changed
1111
func IsVPCChanged(nc common.VPCNetworkConfigInfo, vpc *model.Vpc) bool {
12-
if len(nc.PrivateIPs) != len(vpc.PrivateIpv4Blocks) {
12+
if len(nc.PrivateIPs) != len(vpc.PrivateIps) {
1313
return true
1414
}
1515

0 commit comments

Comments
 (0)