Skip to content

Commit 4e356fc

Browse files
committed
address comment
1 parent a1d5a07 commit 4e356fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cns/restserver/homeazmonitor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TestHomeAzMonitor(t *testing.T) {
6767
return []string{GetHomeAzAPIName}, nil
6868
},
6969
GetHomeAzF: func(_ context.Context) (nmagent.AzResponse, error) {
70-
return nmagent.AzResponse{HomeAz: uint(1), APIVersion: uint(3)}, nil
70+
return nmagent.AzResponse{HomeAz: uint(1), APIVersion: uint(1)}, nil
7171
},
7272
},
7373
cns.HomeAzResponse{IsSupported: true},

nmagent/responses.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (az AzResponse) Valid() bool {
5050

5151
func (az AzResponse) NmaAppliedTheIPV6Fix() bool {
5252
//nolint:gomnd // this magic number is made by nma design
53-
return az.APIVersion == 2
53+
return az.APIVersion >= 2
5454
}
5555

5656
type NodeIP struct {

0 commit comments

Comments
 (0)